How can I get that my form always have focus?

TIA

Drasko

Re: Prevent form loosing focus by Larry

Larry
Wed Aug 16 04:32:18 CDT 2006

Drasko wrote:
> How can I get that my form always have focus?

What do you want to happen when the user clicks the Start button? When I
click the Start button I kinda expect the Start menu to get the focus.


--
Larry Lard
larrylard@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version

Re: Prevent form loosing focus by Jim

Jim
Wed Aug 16 07:57:38 CDT 2006

> How can I get that my form always have focus?

Set the form's TopMost property to True.
Jim Wooley
http://devauthority.com/blogs/jwooley/default.asp



Re: Prevent form loosing focus by Drasko

Drasko
Wed Aug 16 08:38:35 CDT 2006

Unfortunately, if TopMost property is true, form can still loose focus.

I disabled Start button and others like Alt-Tab. But if other program
shows its form, it can steel focus from my app.




Jim Wooley wrote:
> > How can I get that my form always have focus?
>
> Set the form's TopMost property to True.
> Jim Wooley
> http://devauthority.com/blogs/jwooley/default.aspx