|
-
Aug 2nd, 2003, 01:57 AM
#1
Thread Starter
New Member
A real Newbie question about forms...
Sorry for this question I am sure it has come up a few times already bu anyway...
I am quite familiar with VB6 and have just install .Net.
All I am trying to do is close one form and open the next??
I seem to be able to open the next form ok but cant work out how to close the previous form behind it??
in VB6 this was simple eg:
Unload Me
Form2.Show
In .Net I have got as far as:
Public Class frmSplash
Inherits System.Windows.Forms.Form
Dim Test As Form
Private Sub pbxTitle01_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pbxTitle01.Click
Test = New frmMainMenu()
Test.Show()
End Sub
End Class
But as soon as I try and use a "Close" it simply closes everything???
Can can someone point me in the right direction, sorry for the stupid question.
Regards
Merlyn
-
Aug 2nd, 2003, 02:11 AM
#2
Fanatic Member
Your in the wrong forum, got to .NET
-
Aug 2nd, 2003, 08:19 AM
#3
-
Aug 2nd, 2003, 05:58 PM
#4
Sleep mode
If you use the method Close inside a startup form (the main form for your app) then ofcourse this will close the app , otherwise it should close the form itself not the app .
-
Aug 2nd, 2003, 05:59 PM
#5
Sleep mode
Or you can hide it whether main form or anything else using the method : Hide .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|