Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DblClick vs Click on Textbox

Status
Not open for further replies.

Loring

Programmer
Aug 13, 2001
3
US
I have a VB6 app that has phone numbers in textboxes. When you click on the textbox you can edit the number. My client wants to be able to run an autodialer if you DblClick on the number. But VB won't recognize the DblClick event. It sees everything as Click.

Anyone have any suggestions?

Loring

(OK, it's really a label that the original programmer made to look and act like a textbox but the problem is the same.)
 
Hi

what version of VB is this? cos vers 5 & 6 have a double-click event for both lables and text boxes.

I guess you've done this, but...

when you bring up the code for the label and click is listed at the top of the code window - if you click on the drop down arrow don't you see a dblClick event?

it works fine for me.

Kate
 
Dear Kate,

The 'problem' is that the 'click' event is fired before the 'double-click' event.

If you have code in the 'click' event, like Loring has, then that would be executed first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top