Prevent a forum from taking the focus

Hi there,

I have an application that has a main form and several child forms that are disguised. By that I mean they don't look like separate forms (no borders and no title bar etc). I want people to not be able to click on these forms to allow them to steal the focus from the main window. Is there any way to achieve this?

Many thanks in anticipation of your help,

Ady

[396 byte] By [AdrianFoot] at [2007-12-24]
# 1
You should think of an other way of doing things. Why do you need child form if you are not using their functionality ? Maybe a panel, splitter will do what you want.
ThE_lOtUs at 2007-8-31 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
You could set set

Me.Enabled = False

for the form. This will prevent it from getting focus.

DeborahK at 2007-8-31 > top of Msdn Tech,Windows Forms,Windows Forms General...