July 21st, 2003, 02:24 PM
Windows Focus Questions
1. Suppose you have a win form with say 20-30 textboxes. What is the best way to track which textbox you came from. This is because you may need to go back and do something automatically with the control you just came from. I assume you would use the Leave Event in some way. I just wonder if there is any sort of quick method to track where you came from--i.e. the name of the control.
2. Suppose you have a command button. Is it possible to allow a user to process the button press and respond to its events without having the command button gain focus? In other word, whatever control you were in before the button press would maintain control.
Thank you very much!