I want to emulate the Visual Studio Find Window (window on top most per
application but not modal), which properties I have to set?
Dave Sexton - 17 Nov 2006 15:15 GMT
Hi,
Try setting the TopMost property of your Form to true.

Signature
Dave Sexton
>I want to emulate the Visual Studio Find Window (window on top most per
>application but not modal), which properties I have to set?
Ciaran O''Donnell - 17 Nov 2006 15:58 GMT
Visual Studio is an MDI container so the Find form has top most in the mdi
but isnt topmost on the Desktop.
You would have to be MDI based too to get the same functionality, unless you
handled the windows messages to the main for to draw the find form on top, or
had it as a floating control rather than a form.
Ciaran O'Donnell
> I want to emulate the Visual Studio Find Window (window on top most per
> application but not modal), which properties I have to set?
Marc Gravell - 17 Nov 2006 16:26 GMT
Sounds like an owned form:
using System;
using System.Windows.Forms;
class Program {
static void Main()
{
using(Form main = new Form())
using (Form find = new Form())
{
find.Owner = main;
find.Text = "Find...";
main.Text = "Main";
main.Load += delegate { find.Show(); };
Application.Run(main);
}
}
}
Marc