Hehe Dumb Question

Mark82

Member
Joined
Jun 22, 2003
Messages
12
Ummm dont laugh i have only had .net for 2 days.

But how do i show and hide forms in VB.Net like
vb6s form1.show and form1.hide

thanks for any help
 
i am in a form named form1 if I type:

form2. There is no visible or show methods

the second form is named form2
 
OK i figured it out
Code:
Dim MyForm As New Form2
MyForm.Show()

is there no way of showing form2 just like "form2.show"
 
No; Forms in your projects are classes, just like any other; you need an instance of them to use them.
 
You can try this.

Me.show()
for showing the form

Me.Hide()
for hiding the form

It must be done on the form itself cause now vb .net is using OOP approach where each form is a class of its own. Me is referring to the current form.

=
 
Back
Top