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. TopMost property (on-top) without activate form.

TopMost property (on-top) without activate form.

Scheduled Pinned Locked Moved C#
help
4 Posts 3 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.
  • R Offline
    R Offline
    ranzask
    wrote on last edited by
    #1

    Hi all I'm trying to make something like the online notification from MSN, so i want the pop-up form not to recieve any focus at all. what i have done so far: 1. overrided the property ShowWithoutActivation to return true so that when the form is displayed, the form is not activated!!(and i see that activated event do not occur) protected override bool ShowWithoutActivation { get { return true; } } 2. i make sure that the MsgForm.TopMost=false because the topmost feature always activate the form which is bad. because then , after i click first time on the notifiation form it starts to get the focus when i pop-up it. the problem: if i dont use the TopMost, its working fine but.. i need it to be on top of programs otherwise it will not be shown. Please help me. Thanks.

    R.Z

    A 1 Reply Last reply
    0
    • R ranzask

      Hi all I'm trying to make something like the online notification from MSN, so i want the pop-up form not to recieve any focus at all. what i have done so far: 1. overrided the property ShowWithoutActivation to return true so that when the form is displayed, the form is not activated!!(and i see that activated event do not occur) protected override bool ShowWithoutActivation { get { return true; } } 2. i make sure that the MsgForm.TopMost=false because the topmost feature always activate the form which is bad. because then , after i click first time on the notifiation form it starts to get the focus when i pop-up it. the problem: if i dont use the TopMost, its working fine but.. i need it to be on top of programs otherwise it will not be shown. Please help me. Thanks.

      R.Z

      A Offline
      A Offline
      Anthony Mushrow
      wrote on last edited by
      #2

      I can't think of what you could do... why do you have to have it so it doesn't get focus?

      R 1 Reply Last reply
      0
      • A Anthony Mushrow

        I can't think of what you could do... why do you have to have it so it doesn't get focus?

        R Offline
        R Offline
        ranzask
        wrote on last edited by
        #3

        Im trying to do something like MSN's user online notification. the small form never get the focus, but it always on-top. so it is possible.

        R.Z

        E 1 Reply Last reply
        0
        • R ranzask

          Im trying to do something like MSN's user online notification. the small form never get the focus, but it always on-top. so it is possible.

          R.Z

          E Offline
          E Offline
          Eduard Keilholz
          wrote on last edited by
          #4

          There are several ways to accomplish that, i've created a few apps using this feature (it gets boring though ;-)) and most were built from an example found on codeproject. I say, look through the articles, those guys spend a lot of time writing them, and are worth reading!

          - - - --[ i love it when a plan comes together ]-- - - -

          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