Form doesn't show

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

the following code doesn't seem to work. Does anyone know why my form isn't showing?
Dim pickarea1 As New PickArea
pickarea1.Show()
 
* "=?Utf-8?B?bWlrZQ==?= said:
the following code doesn't seem to work. Does anyone know why my form isn't showing?
Dim pickarea1 As New PickArea
pickarea1.Show()

Where do you use the code? If it's inside the sub main, use this
instead:

\\\
Application.Run(New PickArea())
///
 
mike said:
I get the following error message when I use H. Wagner's
suggestion. An unhandled exception of type
'System.InvalidOperationException' occurred in
system.windows.forms.dll

Additional information: It is invalid to start a second message loop
on a single thread. Use Application.RunDialog or Form.ShowDialog
instead.

Right, that's why he wrote that you should do this only if your code was in
Sub Main.

What about my questions?
 
does anyone know of any properties that might be set on the form that I am not aware of. I created a brand new form since this is an upgraded application and when i called the form it worked. any ideas will be appreciated. Thanks
 
mike said:
does anyone know of any properties that might be set on the form that
I am not aware of. I created a brand new form since this is an
upgraded application and when i called the form it worked. any ideas
will be appreciated. Thanks

I've already asked how you set some properties but you didn't answer.
 
Back
Top