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. Hide My Window Form

Hide My Window Form

Scheduled Pinned Locked Moved C#
tutorialquestion
4 Posts 4 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
    Member 3879881
    wrote on last edited by
    #1

    Hi guys i created one windows application its contained only one form..., In that form load event i said some operations have to run..., Its working cool..., But i dont like show the window form to enduser..., It mean no minimize of the form also, just the form load operations have to run thats all So i tried to hide that using this.hide(); methode in my form load event..., But its not getting hide..., how to hide my form window?

    Thanks & Regards, NeW OnE, please don't forget to vote on the post

    D A T 3 Replies Last reply
    0
    • M Member 3879881

      Hi guys i created one windows application its contained only one form..., In that form load event i said some operations have to run..., Its working cool..., But i dont like show the window form to enduser..., It mean no minimize of the form also, just the form load operations have to run thats all So i tried to hide that using this.hide(); methode in my form load event..., But its not getting hide..., how to hide my form window?

      Thanks & Regards, NeW OnE, please don't forget to vote on the post

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      You can put your code in the constuctor instead of load so it runs before the loading takes place unless you need to access the form itself (or child controls) as it's handle won't be created yet so the object(s) will be unavailable.

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

      1 Reply Last reply
      0
      • M Member 3879881

        Hi guys i created one windows application its contained only one form..., In that form load event i said some operations have to run..., Its working cool..., But i dont like show the window form to enduser..., It mean no minimize of the form also, just the form load operations have to run thats all So i tried to hide that using this.hide(); methode in my form load event..., But its not getting hide..., how to hide my form window?

        Thanks & Regards, NeW OnE, please don't forget to vote on the post

        A Offline
        A Offline
        Ajay k_Singh
        wrote on last edited by
        #3

        If your only purpose is to execute a piece of code and not to show any window, you can simply delete the form and put your code in Main method. Open Program.cs file and under main function comment out line which shows the form, and put your code. Such as – --------------------------------- static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Form1()); MessageBox.Show("Test"); } } --------------------- I hope this helps. -Dave. -------------------------------- www.componentone.com --------------------------------

        ------------------------------------ http://www.componentone.com ------------------------------------

        1 Reply Last reply
        0
        • M Member 3879881

          Hi guys i created one windows application its contained only one form..., In that form load event i said some operations have to run..., Its working cool..., But i dont like show the window form to enduser..., It mean no minimize of the form also, just the form load operations have to run thats all So i tried to hide that using this.hide(); methode in my form load event..., But its not getting hide..., how to hide my form window?

          Thanks & Regards, NeW OnE, please don't forget to vote on the post

          T Offline
          T Offline
          Thomas Stockwell
          wrote on last edited by
          #4

          You could set the forms opacity to 0

          Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com

          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