| | |
How can I show a form?
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2004
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by vbpro
I've created a second form for my project.How can I show it?
I find it's different from the VB6.The form.show , visible = true ... are not working now.
How can I do this?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim form2 As New Form2
form2.Show()
End Sub
•
•
Join Date: Nov 2004
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by vbpro
I've created a second form for my project.How can I show it?
I find it's different from the VB6.The form.show , visible = true ... are not working now.
How can I do this?
declare a object for the second form and using the object show the form
like this
on click of a button of first form add this code
dim obj as new sec()
obj.show()
•
•
Join Date: Jan 2008
Posts: 16
Reputation:
Solved Threads: 1
Hi! Wayne The reply that i sent is working on my two forms. Remember the button1 is on the first form and that's where the code goes.
first form button 1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.Show() 'This code call the second form to be displayed
Me.Hide() ' This code hides the first form when the second form is displayed.
End Sub
first form button 1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.Show() 'This code call the second form to be displayed
Me.Hide() ' This code hides the first form when the second form is displayed.
End Sub
![]() |
Similar Threads
- How to show form in Visual Studio 2008 (VB.NET)
- PLZ PLZ HLP me ( in Show Form ) (C#)
- How to show a form using a string value (Visual Basic 4 / 5 / 6)
- Show form in VBExcel and haltsexecution (Visual Basic 4 / 5 / 6)
Other Threads in the VB.NET Forum
- Previous Thread: The ConnectionString property has not been initialized
- Next Thread: Help with Visual Studio 2008
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account arithmetic array basic bing button buttons c# center check code combobox component convert crystalreport data database datagrid datagridview date dissertation dissertations dropdownlist excel fade file-dialog filter ftp generatetags google gridview hardcopy images inline input insert intel internet listview mobile monitor ms net networking objects output panel passingparameters picturebox picturebox1 port position print printing problem problemwithinstallation project read remove save searchbox searchvb.net select serial server shutdown soap survey table tcp temperature text textbox timer timespan toolbox trim update updown user vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year






