Program running in the background

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2007
Posts: 2
Reputation: vbnetdubai is an unknown quantity at this point 
Solved Threads: 0
vbnetdubai vbnetdubai is offline Offline
Newbie Poster

Program running in the background

 
0
  #1
Aug 28th, 2007
Hello everyone,

I am want to write a small program that runs in the background, which means that it has no user interface, and runs all the time, something like a process. The program does a single task: it reads barcode values from a barcode machine attached to the computer and inserts that value into a database or text file, nothing more. So the program listens all the time for user input and inserts it in a database or text file. I have no idea how to start. I tried reading about console applications in Visual Studio 2005 but did not get to anything. How do you create programs that run in the background and wait for userinput or barcode machine input or whatever.

Any idea could help
Thanks alot
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 160
Reputation: kb.net is an unknown quantity at this point 
Solved Threads: 26
kb.net's Avatar
kb.net kb.net is offline Offline
Junior Poster

Re: Program running in the background

 
0
  #2
Aug 28th, 2007
Hi,

While you can make it complicated as a library and run it in the background as a service, there is much simple way. Just develop a visible regular interface in any language and set the property showintaskbar to false and visible to false on the form load. Now compile your application, and put it in a safe place and add the shortcut of it to startup folder in start menu. Then the application will run every time computer runs, you will not see it but if you go to task manager you will find it there.
It is never about the number of languages you know, you either have the logic of programming or you don't ...

Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 2
Reputation: vbnetdubai is an unknown quantity at this point 
Solved Threads: 0
vbnetdubai vbnetdubai is offline Offline
Newbie Poster

Re: Program running in the background

 
0
  #3
Aug 29th, 2007
But how do you capture input from keyboard if the program is running in the background and does not have the focus?
I need code in VB.NET but any ideas are welcomed.

Best Regards
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,093
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 126
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: Program running in the background

 
0
  #4
Aug 29th, 2007
if there is no user interface then no need to create an interface at all. What u need to do is create a windows service.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC