Thread: vb6 to vb.net
View Single Post
Old Sep 23rd, 2005, 8:35 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
The problem is that Load(Form1) is trying to load a class rather than an instance.
All forms in Vb.net are classes, and like in VB6 they need to be instantatiated in object variables to actually create a form.

Dim iForm1 as Form1 = New Form1
iForm.Show
Rory is offline   Reply With Quote