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. Starting an application minimized

Starting an application minimized

Scheduled Pinned Locked Moved C#
question
4 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.
  • G Offline
    G Offline
    goldoche
    wrote on last edited by
    #1

    Hi, I'd like to Start an application minimized, but it doesn't seem to work... I override my Form's Load event and add in it: Hide(); WindowState = FormWindowState.Minimized; What should I do instead of this? Thanks!

    U 1 Reply Last reply
    0
    • G goldoche

      Hi, I'd like to Start an application minimized, but it doesn't seem to work... I override my Form's Load event and add in it: Hide(); WindowState = FormWindowState.Minimized; What should I do instead of this? Thanks!

      U Offline
      U Offline
      Utku KAYA
      wrote on last edited by
      #2

      Try to make initialization in the constructor. Mine works like that. Why do you use hide?

      G 1 Reply Last reply
      0
      • U Utku KAYA

        Try to make initialization in the constructor. Mine works like that. Why do you use hide?

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

        Ok thanks...! I used hide to remove the app from the taskbar so there would only be my NotifyIcon in the icon tray. However, I have to use the Hide() in the Load method.

        U 1 Reply Last reply
        0
        • G goldoche

          Ok thanks...! I used hide to remove the app from the taskbar so there would only be my NotifyIcon in the icon tray. However, I have to use the Hide() in the Load method.

          U Offline
          U Offline
          Utku KAYA
          wrote on last edited by
          #4

          This works for me public Form1() { InitializeComponent(); this.WindowState = FormWindowState.Minimized; }

          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