Visual Studio Find Window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tommaso Caldarola

    Visual Studio Find Window

    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

    #2
    Re: Visual Studio Find Window

    Hi,

    Try setting the TopMost property of your Form to true.

    --
    Dave Sexton

    "Tommaso Caldarola" <ilbecchino@lci mitero.itwrote in message
    news:455dcd3c_2 @x-privat.org...
    >I want to emulate the Visual Studio Find Window (window on top most per
    >application but not modal), which properties I have to set?
    >

    Comment

    • Ciaran O''Donnell

      #3
      RE: Visual Studio Find Window

      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

      "Tommaso Caldarola" wrote:
      I want to emulate the Visual Studio Find Window (window on top most per
      application but not modal), which properties I have to set?
      >
      >

      Comment

      • Marc Gravell

        #4
        Re: Visual Studio Find Window

        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


        Comment

        Working...