471,347 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

Controlling focus

Hi --
I have an application where it is very important that i control where
the focus is. Many times the focus gets set to a form that was just
loaded or a form becoming visible or just a form that is sitting there
that is top most. I want to be in complete control of which form has
focus. This means that when i show a new form i don't want the form to
have focus for even a millisecond. I don't want any form or any thing
to have control until i assign it to that form. Does anyone know how i
can do this? Right now the only way i have found to do this is to
impersonate a user clicking the form so that the form gets focus. I
know this is a horrible way of doing this so thats why i need to find
another way.

Thanks for any help.

Dec 30 '05 #1
2 977
Mutex and process id come to mind, but I hate apps that control the user, so
I won't help... ;)

"Dave" wrote:
Hi --
I have an application where it is very important that i control where
the focus is. Many times the focus gets set to a form that was just
loaded or a form becoming visible or just a form that is sitting there
that is top most. I want to be in complete control of which form has
focus. This means that when i show a new form i don't want the form to
have focus for even a millisecond. I don't want any form or any thing
to have control until i assign it to that form. Does anyone know how i
can do this? Right now the only way i have found to do this is to
impersonate a user clicking the form so that the form gets focus. I
know this is a horrible way of doing this so thats why i need to find
another way.

Thanks for any help.

Dec 30 '05 #2
Thanks. And its for the users own good...;)

Dec 30 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

22 posts views Thread by Mark Reginald James | last post: by
9 posts views Thread by jcrouse | last post: by
7 posts views Thread by Robert | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.