B2Ben
Well-known member
- Joined
- Aug 17, 2006
- Messages
- 52
- Programming Experience
- Beginner
I have an application that uses several child forms on a main MDI form.
I'm building it with VS.NET 2003 (not 2005 like my profile states).
I've noticed that I can only bring focus to my child forms by clicking on their title bars. If I click on the contents of the child form, it does not set focus on the child form.
I have a sub that handles childform.click, and in the sub, it executes "me.setfocus()"
However, if I click on other items in the form, such as labels and pictureboxes, I'd like to my form to pick up this click event, and execute "me.setfocus()". Naturally, I don't want to write a click function for every control on my form.
So... how can my form capture a click event when one of its controls is clicked?
Thanks!
I'm building it with VS.NET 2003 (not 2005 like my profile states).
I've noticed that I can only bring focus to my child forms by clicking on their title bars. If I click on the contents of the child form, it does not set focus on the child form.
I have a sub that handles childform.click, and in the sub, it executes "me.setfocus()"
However, if I click on other items in the form, such as labels and pictureboxes, I'd like to my form to pick up this click event, and execute "me.setfocus()". Naturally, I don't want to write a click function for every control on my form.
So... how can my form capture a click event when one of its controls is clicked?
Thanks!