Archived

This topic is now archived and is closed to further replies.

malpass

Using a form without it having focus

Recommended Posts

malpass    122
How do I stop a form getting focus, so when I click is the current active form isnt changed, like the Onscreen keyboard in Start->Programs->Accessories->Accessablity. This is in C# BTW

Share this post


Link to post
Share on other sites
You mean a window that remains on top of other windows even when its not active?

If so include:

WS_EX_TOPMOST

in your ExStyle when creating the window, or you can change the value after window creation by using the SetWindowPos function.

Hope this helps.

Share this post


Link to post
Share on other sites
malpass    122
no, I mean like if you click it, you can use the window as normal but it doest get the focus, so in effect the title bar stayed grayed; like the onscreen keyboard

Share this post


Link to post
Share on other sites