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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab stop on disabled control

Status
Not open for further replies.

asmith555

Programmer
Oct 7, 2002
97
US
I have a forw which containes user controls. The controls within the user control are disabled until the user controls gotfocus event fires. Then the controls are enabled for input. When the user leaves the control the child controls are once again disabled. Here is the problem. When I hit the tab button I cannot hit the usercontrol to set the gotfocus event. This method may not be a good one but for reasons beyond my conrol I can't avoid this. Can anyone clue me in as to how I can fire the gotfocus event by using the tab key.
 
Hi,
You have effectively crippled the tab order functionality with this set up. That said I think you would have to keep an array of the control names then whenever the tab key is pressed you would have to enable the next Control in the array and then use a got focus on it. I am also araid that you may have to do it by making an array of the type control so that you can actually spin through the controls.

good luck

bassguy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top