Monday, 8 June 2009

Open a form in C# without focus

From .NET 2.0 onwards, to show a new form without the form taking focus:


protected override bool ShowWithoutActivation
{
get
{
return true;
}
}

Override this property in your form code and it should do the trick for you.

No comments: