As seen in the attached Picture. When i hit the button Calculate i want to open another window and close the active window , How can i do that in an easy way ?
Printable View
As seen in the attached Picture. When i hit the button Calculate i want to open another window and close the active window , How can i do that in an easy way ?
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
Where do i fine that ?
Quote:
Shutdown Mode is set to "When last form closes"
In the project properties. Should be the last option in the Project menu.
I dont See that Buddy ,
http://img246.imageshack.us/img246/3509/propan0.jpg
Thats the forms properties, Im talking about the Project properties in the "Project" menu
THANKS. Now to add another forum so i can add the following code do i do this ?
http://img171.imageshack.us/img171/2205/doneyi5.jpg
then 2-click on Calculate and add this
Quote:
Dim someForm As New Form2
someForm.Show()
Me.Close
Can someone help me out here ?
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.
Right click on your spur gear program in the solution explorer and you should have options of adding a windows form and so on.
Thanx ...