Select a word in textbox control in one_click

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wdangin
    New Member
    • May 2010
    • 1

    #1

    Select a word in textbox control in one_click

    Please help if anyone knows how to select a word in textbox using Click Even which result the same as the default DoubleClick even in textbox or any control?

    Thank you.
  • dsatino
    Contributor
    • May 2010
    • 393

    #2
    There is an 'on click' event for text boxes that you can use, but honestly the wording of your question isn't very clear so I'm not sure that's exactly what you're looking for

    Comment

    • vb5prgrmr
      Recognized Expert Contributor
      • Oct 2009
      • 305

      #3
      Well in VBA it is On_Click, in VB6.0 it is Click... and if you are using VB6.0 then you could use the selstart and sellength properties to highlight a word or the contents of the textbox...



      Good Luck

      Comment

      Working...