VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 300,475 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,745 people online right now. Registration is fast and FREE... Join Now!




[2005] Showing new form upon exit of another

 

[2005] Showing new form upon exit of another

Tim A

2 Dec, 2008 - 10:38 AM
Post #1

New D.I.C Head
*

Joined: 3 Apr, 2008
Posts: 32

I have a Setup form that calls the main form after the user clicks on a button. This works fine in VB6, but in VB.Net, the original form either hangs around if I call the new form with .ShowDialog() or the new form exits immediately if I call the new form with .Show()...

What am I missing here?

User is offlineProfile CardPM
+Quote Post


LexBuddha

RE: [2005] Showing New Form Upon Exit Of Another

2 Dec, 2008 - 01:59 PM
Post #2

New D.I.C Head
*

Joined: 19 Nov, 2008
Posts: 45



Thanked: 2 times
My Contributions
QUOTE(Tim A @ 2 Dec, 2008 - 10:38 AM) *

I have a Setup form that calls the main form after the user clicks on a button. This works fine in VB6, but in VB.Net, the original form either hangs around if I call the new form with .ShowDialog() or the new form exits immediately if I call the new form with .Show()...

What am I missing here?


Not to sound stupid on my part but did you do Otherform.hide ?

User is offlineProfile CardPM
+Quote Post

Tim A

RE: [2005] Showing New Form Upon Exit Of Another

2 Dec, 2008 - 02:51 PM
Post #3

New D.I.C Head
*

Joined: 3 Apr, 2008
Posts: 32

In VB6, you didn't have to hide the original form. You could Unload the current form from within the current form and then Show the new form from within the current form and everything worked fine. I realize that in VB.Net you can Hide the current form, ShowDialog on the new form and then close the current form when the new form returns. This is what I am doing now. Just wondering why the VB6 way doesn't work anymore...
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 03:12AM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month