Always focused ToolBox...

  • Thread starter Thread starter pnp
  • Start date Start date
pnp said:
How can I make a Toolbox form always stay
focused without making it a topmost form?

Topmost forms aren't always focused. What exactly do you mean?

P.
 
Hi Paul, thanks for your reply.

What I'm trying to do is not let a user click somewhere outside the form or
even another window (and perhaps place the form behind others forms). The
only way that he could click somewhere else (or something else) would be if
he closed this form.

Have you got any ideas?
I tried a few things but nothing seemed to give focus back to the form if i
clicked away from it...

Peter
 
I don't know if you want to trap the mouse from EVERYTHING or just that
program, but what I use is Form2.ShowDialog(this).
This won't let anything be done to the owner of that dialog until the dialog
closes.
 
Back
Top