| | |
silly Q...but i dont knw the answer !!!
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
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
Views: 2092 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
"crystal .net .net2005 2008 access add application array assignment basic box button buttons center class click code combo convert cpu data database datagrid datagridview design designer dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees error excel exists firewall function image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net opacity page pan picturebox port print printing printpreview problem record refresh regex reports" reuse right-to-left save savedialog search serial socket sorting sql sqldatbase storedprocedure string structures studio temp textbox timer txttoxmlconverter upload useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet vista visual visualbasic visualbasic.net visualstudio2008 web wpf xml





