Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with CF2.0 and form.show

1 view
Skip to first unread message

B Wiesner

unread,
Jun 14, 2005, 10:01:08 AM6/14/05
to
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

Darren Shaffer

unread,
Jun 14, 2005, 10:22:43 AM6/14/05
to
it's because you're trying to show Form2 in Form1's Load method
that this is happening.
--
Darren Shaffer
.NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com

"B Wiesner" <BWie...@discussions.microsoft.com> wrote in message
news:72576EA6-0101-48A6...@microsoft.com...

B Wiesner

unread,
Jun 14, 2005, 10:39:04 AM6/14/05
to
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.

"Darren Shaffer" wrote:

> it's because you're trying to show Form2 in Form1's Load method
> that this is happening.
> --
> Darren Shaffer

> ..NET Compact Framework MVP

Darren Shaffer

unread,
Jun 15, 2005, 6:16:33 PM6/15/05
to
yes, the load event on CF2.0 forms behaves differently than in 1.0
--
Darren Shaffer

.NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com


"B Wiesner" <BWie...@discussions.microsoft.com> wrote in message

news:9EB0422E-3E77-4034...@microsoft.com...

B Wiesner

unread,
Jun 24, 2005, 9:11:02 AM6/24/05
to
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.


"Darren Shaffer" wrote:

> yes, the load event on CF2.0 forms behaves differently than in 1.0
> --
> Darren Shaffer

B Wiesner

unread,
Jul 19, 2005, 3:58:02 PM7/19/05
to
I'm still at a loss here. Anyone have any suggestions? Thanks
0 new messages