|
-
Mar 15th, 2008, 08:35 AM
#1
Thread Starter
Addicted Member
-
Mar 15th, 2008, 08:41 AM
#2
Re: How do i open another window and close the avtive window when i hit a button ?
First you need to make sure that Shutdown Mode is set to "When last form closes" in your projects properties.
Then just create an instance of the form you want to show, call its Show method, and close the current form.
vb Code:
Dim someForm As New Form2
someForm.Show()
Me.Close
-
Mar 15th, 2008, 09:43 AM
#3
Thread Starter
Addicted Member
Re: How do i open another window and close the avtive window when i hit a button ?
Where do i fine that ?
Shutdown Mode is set to "When last form closes"
-
Mar 15th, 2008, 09:48 AM
#4
Re: How do i open another window and close the avtive window when i hit a button ?
In the project properties. Should be the last option in the Project menu.
-
Mar 15th, 2008, 10:56 AM
#5
Thread Starter
Addicted Member
Re: How do i open another window and close the avtive window when i hit a button ?
I dont See that Buddy ,
-
Mar 15th, 2008, 11:31 AM
#6
Re: How do i open another window and close the avtive window when i hit a button ?
Thats the forms properties, Im talking about the Project properties in the "Project" menu
-
Mar 15th, 2008, 11:58 AM
#7
Thread Starter
Addicted Member
Re: How do i open another window and close the avtive window when i hit a button ?
THANKS. Now to add another forum so i can add the following code do i do this ?

then 2-click on Calculate and add this
Dim someForm As New Form2
someForm.Show()
Me.Close
-
Mar 18th, 2008, 12:27 PM
#8
Thread Starter
Addicted Member
Re: How do i open another window and close the avtive window when i hit a button ?
Can someone help me out here ?
-
Mar 18th, 2008, 01:27 PM
#9
Fanatic Member
Re: How do i open another window and close the avtive window when i hit a button ?
In Solution Explorer on your right double click on My Project it will open the properties. The shutdown option is the item next to last.
CLanguage; 
IF Post = HelpFull Then
RateMe
Else
Say("Shut UP")
End If
DotNet rocks
VB 6, VB.Net 2003, 2005, 2008, 2010, SQL 2005, WM 5.0,ahem ?OpenRoad?
-
Mar 18th, 2008, 02:06 PM
#10
Fanatic Member
Re: How do i open another window and close the avtive window when i hit a button ?
Right click on your spur gear program in the solution explorer and you should have options of adding a windows form and so on.
Using Visual Studio 2008
Please mark your thread RESOLVED if you no longer need help.
-
Mar 18th, 2008, 04:04 PM
#11
Thread Starter
Addicted Member
Re: [RESOLVED] How do i open another window and close the avtive window when i hit a button ?
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
|