Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. VS.NET Replace Window-Like Behavior

VS.NET Replace Window-Like Behavior

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestionworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bneacetp
    wrote on last edited by
    #1

    I am wanting to setup a window in an application I am working on that behaves similar to the Find and Replace windows in Visual Studio where the modeless dialog remains above the main application's window at all times not covering other application's windows. I have tried the TopMost property, but it overlaps other application windows as well which I don't want. Is there a way to implement a topmost-like behavior that doesn't overlap other applications' windows? :confused: Thanks in advance. :)


    John 3:16: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life."

    R 1 Reply Last reply
    0
    • B bneacetp

      I am wanting to setup a window in an application I am working on that behaves similar to the Find and Replace windows in Visual Studio where the modeless dialog remains above the main application's window at all times not covering other application's windows. I have tried the TopMost property, but it overlaps other application windows as well which I don't want. Is there a way to implement a topmost-like behavior that doesn't overlap other applications' windows? :confused: Thanks in advance. :)


      John 3:16: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life."

      R Offline
      R Offline
      Robert Rohde
      wrote on last edited by
      #2

      Im not 100% sure but I think setting the Owner property of the dialog to your application main form should do it.

      B 1 Reply Last reply
      0
      • R Robert Rohde

        Im not 100% sure but I think setting the Owner property of the dialog to your application main form should do it.

        B Offline
        B Offline
        bneacetp
        wrote on last edited by
        #3

        That did it! Thanks! :)


        John 3:16: "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life."

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups