list box click

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • charvi
    New Member
    • May 2007
    • 121

    list box click

    hi
    is there any ascii code for mouse click this is because
    i have atext box and a list box.when i enter two letters in the text box all the related names will appear in the list box i want to select the name either by using arrow keys and enter key or by mouse click
    i was possible to code for arrow keys and then when i press enter key the names will appear in text box and list disappears.but when i use mouse click the name will appear in textbox but the list box does not disaapear.can any pls help how to go about this
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    You detect the mouse click by putting code in the Click event procedure - there isn't any "ascii code for mouse click".

    Comment

    • VACEPROGRAMER
      Banned
      New Member
      • Nov 2007
      • 167

      #3
      yes, there isn';t but you can do this

      Form1_Click or Mouse down

      Dim A as Key ..
      A = vbLeft key

      Dim b AS Key . . .
      b=vbRightKEy

      and . ..


      VxE

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by VACEPROGRAMER
        Dim A as Key ..
        As Key? What version of VB are you using, VACEPROGRAMER? And for that matter, what about you, charvi?

        Comment

        • charvi
          New Member
          • May 2007
          • 121

          #5
          Originally posted by Killer42
          As Key? What version of VB are you using, VACEPROGRAMER? And for that matter, what about you, charvi?
          i am using vb6 i coded using flag and now it works

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Originally posted by charvi
            i am using vb6 i coded using flag and now it works
            Ok. Glad you got it working.

            Comment

            • VACEPROGRAMER
              Banned
              New Member
              • Nov 2007
              • 167

              #7
              I'm using VB 5 , VB 6, VB 2003 and VB 2005 but the code is for VB 5 and 6 ., . .



              VxE

              Comment

              Working...