| | |
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 2008 access account advanced application array basic beginner browser button buttons center click code combo cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic excel exists fade filter forms generatetags gridview html images input insert intel internet listview map mobile module monitor msaccess net number objects open panel passingparameters pdf picturebox picturebox2 port position print printing problem regex remove right-to-left save search searchvb.net select serial settings shutdown socket sqldatbase sqlserver survey temperature textbox timer timespan transparency txttoxmlconverter update user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode xml year






