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.
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.