| | |
silly Q...but i dont knw the answer !!!
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2005
Posts: 17
Reputation:
Solved Threads: 0
hey ppl, i know this is aa really daft Q, but i only started using vb.net this yr and im not that gud at it!
basically i wana know how to go from one form to another using a button, wud it just be sumthin as simple as:
basically i wana know how to go from one form to another using a button, wud it just be sumthin as simple as:
•
•
•
•
Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click
btnSearch = frmSearch
endSub
•
•
Join Date: Jan 2005
Posts: 23
Reputation:
Solved Threads: 0
Adding to what cpopham said, make a subroutine for one of your buttons like this:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
objNewForm.ShowDialog()
End Sub
Also make sure you put Dim objNewForm as New Form somewhere near the top. It should be "as New Form" and not "as New NewForm()"
That's in my version at least.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
objNewForm.ShowDialog()
End Sub
Also make sure you put Dim objNewForm as New Form somewhere near the top. It should be "as New Form" and not "as New NewForm()"
That's in my version at least.
![]() |
Similar Threads
- how to run ireport from jsp (JSP)
- arrays passed to methods and keyword param (C#)
- supported files in premier (Graphics and Multimedia)
- When a host says "included scripts" (Networking Hardware Configuration)
- output numbers from a varible on different lines asap (Java)
- About the thread Creating viruses by chound (C++)
- More info abt some HW/SW (Troubleshooting Dead Machines)
Other Threads in the VB.NET Forum
- Previous Thread: I'm having trouble reopening projects.
- Next Thread: link text boxes with listbox
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
"crystal .net .net2005 30minutes 2005 2008 access application arithmetic array basic binary bing button buttons c# center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist error excel file-dialog folder ftp google hardcopy image images inline listview login math memory mobile ms navigate net networking opacity output peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save savedialog searchbox serial server soap sorting sql string studio tcp text textbox timer toolbox trim updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





