Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   ASP (https://www.askmehelpdesk.com/forumdisplay.php?f=451)
-   -   Enabling textboxes (https://www.askmehelpdesk.com/showthread.php?t=416421)

  • Nov 16, 2009, 06:47 AM
    Mistery1
    Enabling textboxes
    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
  • Nov 16, 2009, 06:53 AM
    Perito

    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.
  • Nov 16, 2009, 06:57 AM
    Mistery1
    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

  • All times are GMT -7. The time now is 01:05 PM.