Results 1 to 3 of 3

Thread: opening new form from listview

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2004
    Posts
    2

    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!!

  2. #2

    Thread Starter
    New Member
    Join Date
    Apr 2004
    Posts
    2
    Sorry, forgot to mention this is for a POCKET PC program using Visual basic .NET.

    Thanks!

  3. #3
    Addicted Member cutamacious's Avatar
    Join Date
    May 2001
    Location
    INDIA >> Andhra Pradesh >> Hyderabad
    Posts
    185

    Lightbulb 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()
    Cute Member

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width