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. Other Discussions
  3. IT & Infrastructure
  4. Silently execute an exe at startup

Silently execute an exe at startup

Scheduled Pinned Locked Moved IT & Infrastructure
csharptutorialquestion
9 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.
  • M Offline
    M Offline
    Mushtaque Nizamani
    wrote on last edited by
    #1

    I have got C# windows application exe and want to execute that silently at startup can anyone please tell me how to do that?

    Thanks, Mushq

    _ G 2 Replies Last reply
    0
    • M Mushtaque Nizamani

      I have got C# windows application exe and want to execute that silently at startup can anyone please tell me how to do that?

      Thanks, Mushq

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      by silently you mean that it should not show up in the taskbar. If yes, then you can look for creating a windows service.

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      1 Reply Last reply
      0
      • M Mushtaque Nizamani

        I have got C# windows application exe and want to execute that silently at startup can anyone please tell me how to do that?

        Thanks, Mushq

        G Offline
        G Offline
        Giorgi Dalakishvili
        wrote on last edited by
        #3

        To run program at startup you can use this code: Managing Start-up[^] To execute is silently make your form invisible.

        Giorgi Dalakishvili #region signature my articles #endregion

        M 1 Reply Last reply
        0
        • G Giorgi Dalakishvili

          To run program at startup you can use this code: Managing Start-up[^] To execute is silently make your form invisible.

          Giorgi Dalakishvili #region signature my articles #endregion

          M Offline
          M Offline
          Mushtaque Nizamani
          wrote on last edited by
          #4

          Thanks for reply.

          Giorgi Dalakishvili wrote:

          To execute is silently make your form invisible.

          But I don't see any visible property of form at least at design time, can you please guide me how do that.

          Thanks, Mushq

          G 1 Reply Last reply
          0
          • M Mushtaque Nizamani

            Thanks for reply.

            Giorgi Dalakishvili wrote:

            To execute is silently make your form invisible.

            But I don't see any visible property of form at least at design time, can you please guide me how do that.

            Thanks, Mushq

            G Offline
            G Offline
            Giorgi Dalakishvili
            wrote on last edited by
            #5

            this.Hide();

            Giorgi Dalakishvili #region signature my articles #endregion

            M 1 Reply Last reply
            0
            • G Giorgi Dalakishvili

              this.Hide();

              Giorgi Dalakishvili #region signature my articles #endregion

              M Offline
              M Offline
              Mushtaque Nizamani
              wrote on last edited by
              #6

              Giorgi Dalakishvili wrote:

              this.Hide();

              Sorry, it is not working, I have called it in InitializeComponent(), but it is not working, I don't know what am I doing wrong.

              Regards, Mushq

              G 1 Reply Last reply
              0
              • M Mushtaque Nizamani

                Giorgi Dalakishvili wrote:

                this.Hide();

                Sorry, it is not working, I have called it in InitializeComponent(), but it is not working, I don't know what am I doing wrong.

                Regards, Mushq

                G Offline
                G Offline
                Giorgi Dalakishvili
                wrote on last edited by
                #7

                Mushq wrote:

                I have called it in InitializeComponent(), but it is not working

                It won't Call it when the form loads or is shown very first time. Alternatively, you can start your form minimized and set its showintaskbar property to false. Hope it helps.

                Giorgi Dalakishvili #region signature my articles #endregion

                M 1 Reply Last reply
                0
                • G Giorgi Dalakishvili

                  Mushq wrote:

                  I have called it in InitializeComponent(), but it is not working

                  It won't Call it when the form loads or is shown very first time. Alternatively, you can start your form minimized and set its showintaskbar property to false. Hope it helps.

                  Giorgi Dalakishvili #region signature my articles #endregion

                  M Offline
                  M Offline
                  Mushtaque Nizamani
                  wrote on last edited by
                  #8

                  Giorgi Dalakishvili wrote:

                  Hope it helps.

                  Yes it has helped a lot. Thank you very much. :)

                  Regards, Mushq

                  G 1 Reply Last reply
                  0
                  • M Mushtaque Nizamani

                    Giorgi Dalakishvili wrote:

                    Hope it helps.

                    Yes it has helped a lot. Thank you very much. :)

                    Regards, Mushq

                    G Offline
                    G Offline
                    Giorgi Dalakishvili
                    wrote on last edited by
                    #9

                    Glad to help you :)

                    Giorgi Dalakishvili #region signature my articles #endregion

                    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