Visual Studio Find Window

  • Thread starter Thread starter Tommaso Caldarola
  • Start date Start date
T

Tommaso Caldarola

I want to emulate the Visual Studio Find Window (window on top most per
application but not modal), which properties I have to set?
 
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
 
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
 
Back
Top