Setting the Focus
I have a program that is continually watching for changes in a specific folder on my hard drive. When it senses a change, a form I have created pops up and asks the user to input something into a textbox. Using the following line of code the form gets put above all other windows open:
Me.TopMost = True
However, the form does not have the focus. I want the form to pop up and be on top of all other windows like it does but I also want it to have the focus and specifecally I want the textbox on the form to have the focus so the user can just type right in the box as soon as it pops up without having to click on the form or in the box.
Any ideas?
|