Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / November 2006

Tip: Looking for answers? Try searching our database.

Visual Studio Find Window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tommaso Caldarola - 17 Nov 2006 14:53 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.