CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Binding Data to Silverlight 4.0 Controls Using ASP.NET MVC Framework 2.0
  • ADO.NET Data Services in the .NET Framework
  • Visual C++ Programming: What's new for MFC library in VC++ 2010?
  • Microsoft Visual Studio LightSwitch and What It Can Do For You

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic .NET
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual Basic .NET Microsoft Visual Basic .NET and related questions.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old July 10th, 2009, 06:19 PM
    HeadScratch HeadScratch is offline
    Junior Member
     
    Join Date: Jul 2009
    Posts: 2
    HeadScratch is an unknown quantity at this point (<10)
    Want my Console program to run as a service

    Hello i'm working on a project that simply changes the wallpaper periodically...it works fine...I created two seperate projects...1) a forms application 2) console application........The forms application gets the data and settings from the user....the console application reads the data and settings from text files created in the forms application and does the job of changing the wall paper...i've got mine set to change every minute...I realy want to get this finished, but am stumped by a few things....

    1) how can i get my console application to run as a windows service..have tried the SC Create command..no good.....
    2)how can i get it so the console program runs as an icon on the system tray near the clock.........
    3)When i want to publish to create the setup.exe...should i somehow merge the two projects together or publish each one seperatly and use some sort of batch installer.....

    I've never done any windows programming b4..but am catching on..any help would be appreciated..
    Reply With Quote
      #2    
    Old July 10th, 2009, 07:14 PM
    DataMiser DataMiser is offline
    Elite Member
     
    Join Date: Jul 2008
    Location: WV
    Posts: 2,089
    DataMiser is a splendid one to behold (750+)DataMiser is a splendid one to behold (750+)DataMiser is a splendid one to behold (750+)DataMiser is a splendid one to behold (750+)DataMiser is a splendid one to behold (750+)DataMiser is a splendid one to behold (750+)DataMiser is a splendid one to behold (750+)DataMiser is a splendid one to behold (750+)
    Re: Want my Console program to run as a service

    You need to create a windows service project.

    have a look at this

    http://www.codeguru.com/vb/gen/vb_sy...icle.php/c4825
    Reply With Quote
      #3    
    Old July 11th, 2009, 05:45 AM
    HeadScratch HeadScratch is offline
    Junior Member
     
    Join Date: Jul 2009
    Posts: 2
    HeadScratch is an unknown quantity at this point (<10)
    Re: Want my Console program to run as a service

    Hello, thanks for the reply..I have Visual Basic express edition ..the free one...It doesn't have a Windows Service Template...but fingers x'd i think i've found one i've downloaded...will Give it a Try...thanks.
    Reply With Quote
      #4    
    Old July 11th, 2009, 06:47 AM
    Shuja Ali's Avatar
    Shuja Ali Shuja Ali is offline
    Super Mod
    Power Poster
     
    Join Date: Jun 2004
    Location: Kashmir, India
    Posts: 6,803
    Shuja Ali has a reputation beyond repute (3000+)Shuja Ali has a reputation beyond repute (3000+)Shuja Ali has a reputation beyond repute (3000+)Shuja Ali has a reputation beyond repute (3000+)Shuja Ali has a reputation beyond repute (3000+)Shuja Ali has a reputation beyond repute (3000+)Shuja Ali has a reputation beyond repute (3000+)Shuja Ali has a reputation beyond repute (3000+)Shuja Ali has a reputation beyond repute (3000+)Shuja Ali has a reputation beyond repute (3000+)Shuja Ali has a reputation beyond repute (3000+)
    Re: Want my Console program to run as a service

    You can try the full Visual Studio trial version. It will have what you need.
    __________________
    Use [code]your code here[/code] tags when you post source code
    Search here before you post your question, someone might have already asked it before.

    My Articles
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic .NET


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 08:39 PM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.