opening new form from listview
Easy problem for you guys I bet...a pain in the butt for me, a beginner.
I am trying to click on an item in the listview, and have it open another form. I have no idea for what to use for the code. It can either be selected, and then opened with an "open" button, or just selected, and pop open the form. Any help would be greatly appreciated.
I have already searched for this, and if I missed it I appologize ahead of time.
Thanks in advance!!
Re: opening new form from listview
Quote:
Originally Posted by bmueller
Sorry, forgot to mention this is for a POCKET PC program using Visual basic .NET.
Thanks!
Hi!!
Hope u have got ur solution by now in case if u didnot then
in each listview item's tag enter the name of the form it should open and then
in the list view dblclk event
Dim frm As Form
Select Case lvwMain.SelectedItems.Item(0).Tag
Case "frmAbout"
frm = New frmAbout
Case "frmSplash"
frm = New frmSplash
End Select
frm.Show()