Adblock breaks this site

Question?

Discussion in 'Programming General' started by cooladrrang, Mar 7, 2007.

  1. cooladrrang

    cooladrrang Active Member

    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0
    Question?

    what is the event when i want to make form2.show when i double click a item at the itembox
     
  2. X Zero

    X Zero Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0
    Question?

    lol i 'm helping ma hero :p

    listbox1_Doubleclick (blavlalvl) . listbox1.click
    Form2.show
    end sub

    something like dat. iwould help more but i'm on a diff comp:)
     
  3. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    Question?

    Well, it would depend on the list item he wants. I'll make an example later, right now I only have half an hour before I go to bed, and I'm doing other things.
     
  4. cooladrrang

    cooladrrang Active Member

    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0
    Question?

    i think this is waht you mean
    Code:
     Private Sub ListBox1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.DoubleClick
       form2.show
        End Sub
    but it doesnt wrok i had tried it already\
    problem solved now the next is another problem ill thread it
     
  5. slashshot007

    slashshot007 Active Member

    Joined:
    May 6, 2006
    Posts:
    164
    Referrals:
    0
    Sythe Gold:
    0
    Question?

    please explain how you got it to double click :p
    i'm thinking using a timer, but i usually tend to do things the hard way.
     
  6. cooladrrang

    cooladrrang Active Member

    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0
    Question?

    na it only opens when i click once not double click but it works fine
     
  7. Skeletron

    Skeletron Guest

    Referrals:
    0
    Question?

    Yeah, that is what you wanted right?
     
  8. cooladrrang

    cooladrrang Active Member

    Joined:
    Jan 21, 2007
    Posts:
    125
    Referrals:
    0
    Sythe Gold:
    0
    Question?

    kinda but without the if statements
     
< How to | New Progm rate it and test it plz >


 
 
Adblock breaks this site