Visual Studio Find Window

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?
 
G

Guest

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
 
M

Marc Gravell

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top