944,116 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 5353
  • VB.NET RSS
Aug 28th, 2007
0

Program running in the background

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vbnetdubai is offline Offline
2 posts
since Aug 2007
Aug 28th, 2007
0

Re: Program running in the background

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.
Reputation Points: 13
Solved Threads: 29
Junior Poster
kb.net is offline Offline
169 posts
since Aug 2007
Aug 29th, 2007
0

Re: Program running in the background

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vbnetdubai is offline Offline
2 posts
since Aug 2007
Aug 29th, 2007
0

Re: Program running in the background

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.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Determining Width of Text in a Control
Next Thread in VB.NET Forum Timeline: Has anyone Tried the File Watcher??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC