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. I want to set my Windows form as "Always on Top" and

I want to set my Windows form as "Always on Top" and

Scheduled Pinned Locked Moved C#
csharptutorial
7 Posts 5 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.
  • M Offline
    M Offline
    M Riaz Bashir
    wrote on last edited by
    #1

    Hi, Kindly let me know the method / syntax about how to set windows form as "Always on Top". and please convert the following VB command into C#. Sendkeys "%{TAB}" <<== This is vb command kindly convert it into C# Thank you

    C W 2 Replies Last reply
    0
    • M M Riaz Bashir

      Hi, Kindly let me know the method / syntax about how to set windows form as "Always on Top". and please convert the following VB command into C#. Sendkeys "%{TAB}" <<== This is vb command kindly convert it into C# Thank you

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      this.TopMost = true;

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      M 1 Reply Last reply
      0
      • C Christian Graus

        this.TopMost = true;

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        M Offline
        M Offline
        M Riaz Bashir
        wrote on last edited by
        #3

        thank you Mr Christian Graus but what happened my second quistion? which is related with VB and need to convert into C#.

        L S 2 Replies Last reply
        0
        • M M Riaz Bashir

          thank you Mr Christian Graus but what happened my second quistion? which is related with VB and need to convert into C#.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          http://msdn2.microsoft.com/en-us/library/system.windows.forms.sendkeys.send.aspx

          1 Reply Last reply
          0
          • M M Riaz Bashir

            thank you Mr Christian Graus but what happened my second quistion? which is related with VB and need to convert into C#.

            S Offline
            S Offline
            sxbluebird
            wrote on last edited by
            #5

            In c# maybe is: SendKeys.Send("{TAB}"); wang

            M 1 Reply Last reply
            0
            • S sxbluebird

              In c# maybe is: SendKeys.Send("{TAB}"); wang

              M Offline
              M Offline
              M Riaz Bashir
              wrote on last edited by
              #6

              thank you guys

              1 Reply Last reply
              0
              • M M Riaz Bashir

                Hi, Kindly let me know the method / syntax about how to set windows form as "Always on Top". and please convert the following VB command into C#. Sendkeys "%{TAB}" <<== This is vb command kindly convert it into C# Thank you

                W Offline
                W Offline
                wasife
                wrote on last edited by
                #7

                Set the form's TopLevel property to True. Regards, Wasif Ehsan.

                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