Learning VB

11 replies [Last post]
Nights
Nights's picture
Offline
Apprentice
Joined: 2009/08/12

hey im learning some bits and pieces of VB and i need a code for a on click button event so that it will open a new window in the same window... like when i click button1 on form1 it will open form2 in the same window i know it can be done with the show command i found this but cant get it to work:

FORMNAMEHERE.Show (vbModal, Me)

but i run into a error like this...

Error : 'vbModal' is not declared. It may be inaccessible due to its protection level.

btw im working with VB 2010

Photobucket