View Single Post
  #3 (permalink)  
Old 06-08-03, 08:10 AM
Tesco Tesco is offline
ASP Guru
 
Join Date: Jun 2003
Location: UK
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Thats what I tried to use, but instead of using FormName.Show VS told me I need to declare a variable, and then use VarName.Show - so I declared a variable with the value Form2, but now I'm getting114): 'Form2' is a type and cannot be used as an expression.

My code is:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim Button2Open
Button2Open = Form2
Button2Open.Show()
End Sub

Any ideas?
Thanks!
Reply With Quote