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. How to hide Application When openning ?

How to hide Application When openning ?

Scheduled Pinned Locked Moved C#
questioncsharphelptutorial
6 Posts 6 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.
  • P Offline
    P Offline
    pubududilena
    wrote on last edited by
    #1

    hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..

    E G R D A 5 Replies Last reply
    0
    • P pubududilena

      hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..

      E Offline
      E Offline
      eggie5
      wrote on last edited by
      #2

      I've had that problem before also... /\ |_ E X E GG

      1 Reply Last reply
      0
      • P pubududilena

        hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..

        G Offline
        G Offline
        G Ringbom
        wrote on last edited by
        #3

        Try to set the Visible property to false in the constructor of the form and see if that helps.

        1 Reply Last reply
        0
        • P pubududilena

          hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..

          R Offline
          R Offline
          Rizwan Bashir
          wrote on last edited by
          #4

          two ways 1. create one public procedure with any name say "LoadForm()" in that form and put all the code from load event to this procedure and instead of calling frm.show call frm.loadForm() 2. try this in activate event of the form write this.Hide();

          1 Reply Last reply
          0
          • P pubududilena

            hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Instead of putting this code in the Form.Load event, override the OnLoad method of your form and put it in there. You have much greater control over the form visibility that way. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            1 Reply Last reply
            0
            • P pubududilena

              hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..

              A Offline
              A Offline
              Alex Korchemniy
              wrote on last edited by
              #6

              Probably the cleanest hack: Set the application to start minimized. Also specify that your application doesn't show in the taskbar. Alex Korchemniy

              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