PDA

View Full Version : Enabling textboxes


Mistery1
Nov 16, 2009, 06:47 AM
Hi there,

I wonder if anyone can help. I am looking for code to enable textboxes one by one. Basically I have 3 textboxes with the cell, home and work numbers. So when I double click on the cell textbox it should start dialling that number, while the home and work number textboxes are greyed out. If there is not answer from the cell number, I will obviously select voicemail from the dropdownlist and the next number textbox(home number) must be enabled.

Im doing this in asp.net in the visual basic language.

Your help in this regard is mush appreciate.

Thanks

Perito
Nov 16, 2009, 06:53 AM
In the "on doubleclick" handler, simply disable the text boxes that you want to be grayed out. Make sure you call "doevents" so they will appear properly. When you fall out of the handler, simply re-enable the boxes you wish.

Mistery1
Nov 16, 2009, 06:57 AM
Hi there,

Thanks for responding. When I change the event handler to doubleclick, it throws me an error saying that doubleclick cannot be found. Please bare with me I'm new to asp.net/vb