How to restrict focus in textbox
Posted
by
Ashish Singhal
on Stack Overflow
See other posts from Stack Overflow
or by Ashish Singhal
Published on 2012-12-07T09:38:17Z
Indexed on
2012/12/07
11:04 UTC
Read the original article
Hit count: 195
I have a dialog with few controls. There is a TextBox
named txtControl and two Buttons
Accept and Cancel. I want that once the focus is in txtControl, the focus should not go away, until I click on Accept or Cancel button.
If I try to click on any other control without clicking on Accept or Cancel button, then focus should remains in txtControl. Also I don't want to disable or gay out other controls.
© Stack Overflow or respective owner