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. Silent EXE application

Silent EXE application

Scheduled Pinned Locked Moved C#
csharpwinformsperformance
5 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.
  • D Offline
    D Offline
    Dr Freud
    wrote on last edited by
    #1

    :confused:Hi! I would like to autostart on my Windows 2000 machines a .NET application I will build. The thing is that the application shouldn't have a GUI or a console window. So I can't make a Windows application (yes I can hide the Form, but that doesn't seem to be such a good idea). Or can I build a Console application but the Console window keeps showing up. Can I get rid of the Console window or should I make a Windows Forms application and then run this.Hide() but this will use memory. Is there some other way of doing this. I'm quite lost. Since I'm a newbie I have probably missed something basic.

    R L 2 Replies Last reply
    0
    • D Dr Freud

      :confused:Hi! I would like to autostart on my Windows 2000 machines a .NET application I will build. The thing is that the application shouldn't have a GUI or a console window. So I can't make a Windows application (yes I can hide the Form, but that doesn't seem to be such a good idea). Or can I build a Console application but the Console window keeps showing up. Can I get rid of the Console window or should I make a Windows Forms application and then run this.Hide() but this will use memory. Is there some other way of doing this. I'm quite lost. Since I'm a newbie I have probably missed something basic.

      R Offline
      R Offline
      Rocky Moore
      wrote on last edited by
      #2

      Standard C# Windows application running your code in Main() should work fine. Don't do that Application.Run. That is, if you do not need a message pump. Rocky Moore <><

      1 Reply Last reply
      0
      • D Dr Freud

        :confused:Hi! I would like to autostart on my Windows 2000 machines a .NET application I will build. The thing is that the application shouldn't have a GUI or a console window. So I can't make a Windows application (yes I can hide the Form, but that doesn't seem to be such a good idea). Or can I build a Console application but the Console window keeps showing up. Can I get rid of the Console window or should I make a Windows Forms application and then run this.Hide() but this will use memory. Is there some other way of doing this. I'm quite lost. Since I'm a newbie I have probably missed something basic.

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        You need a service :) I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02

        U 1 Reply Last reply
        0
        • L leppie

          You need a service :) I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02

          U Offline
          U Offline
          User 138817
          wrote on last edited by
          #4

          This stuff will not work if you have'nt Framework installed on the target machine. You better use unmanaged C++ for this application...

          L 1 Reply Last reply
          0
          • U User 138817

            This stuff will not work if you have'nt Framework installed on the target machine. You better use unmanaged C++ for this application...

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            :confused: I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02

            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