Problem with CF2.0 and form.show

G

Guest

I just converted my app from VS.NET 2003 to VS.NET 2005 Beta 2, and the first
issue I came to was that “form.show†is loading the form, but not displaying
it.

I created a new project, and added Form1 and Form2. The following code is in
Form1.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim tf As New Form2
tf.Show()
End Sub

When I run my app, Form2 is in the running programs list, but Form1 is still
the top form displayed.

Please tell me I’m overlooking something simple. Thanks for the help.

Brandon
 
G

Guest

Is this new behavior in cf 2.0? I've been under the assumption that this was
ok, as it has been working fine in the past (CF 1.0).

Thanks for the reply.
 
G

Guest

Is this documented somewhere, (along with any other changes like this) I've
searched but no luck. Also, since this has changed, is there a suggested best
practice for loading a second form like this while the first one is loading?

Thanks for the help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top