Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 1st, 2005, 6:06 PM   #1
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
Make Program run on StrartUp

Hello, Is it possible to make you program run when the user turns on their computer, anfd logs on,etc.?
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain

Destruction leads to a very rough road, but it also breeds creation.
bigguy is offline   Reply With Quote
Old Nov 1st, 2005, 6:22 PM   #2
bivhitscar
Hobbyist Programmer
 
bivhitscar's Avatar
 
Join Date: Oct 2005
Location: Melbourne, Australia
Posts: 126
Rep Power: 3 bivhitscar is on a distinguished road
There's two ways it can be done. You either need to add an entry to the registry, or add an entry in the startup folder. This link tells you a bit about the registry. To add an entry to the startup folder, just make a shortcut to your program and add it to "X:\Documents and Settings\*User*\Start Menu\Programs\Startup" - where *User* is the name of the user and X:\ is the system root - this is only true for windows xp. From memory, in earlier versions it would be "X:\windows\Start Menu\Programs\StartUp"

You'll have to look through the VB help files to learn how to edit the registry, but here is the article for VB .Net on msdn - Link

Hope that helped.
__________________
it's ironic considerate rarity patron of love higher knowledge engulfs me...
bivhitscar is offline   Reply With Quote
Old Nov 1st, 2005, 6:44 PM   #3
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
Yes that worked well, now u ready for another question. My program is sumthign that requires you to make a password to use later. Now after Install and the user runs it for the first time. how can i make it show that form you make your password oin, and thne make that form never show again? And the Only time it will show up again, is if the user uninstalls and reinstalls.
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain

Destruction leads to a very rough road, but it also breeds creation.
bigguy is offline   Reply With Quote
Old Nov 1st, 2005, 6:51 PM   #4
bivhitscar
Hobbyist Programmer
 
bivhitscar's Avatar
 
Join Date: Oct 2005
Location: Melbourne, Australia
Posts: 126
Rep Power: 3 bivhitscar is on a distinguished road
You'd have to save the info in a configuration file. Basically just any old text file that has basic info about your program. For instance you could have an entry that reads "IsFirstRun = 1;" - and when the program starts for the first time, it reads this line and shows the form. When the user has completed the form, just set the value to 0. So next time it runs, it will read the value as false and not show the form.

Again, for implementation, you'll have to check out the help files, as I'm not familiar with the exact file i/o functions in VB.
__________________
it's ironic considerate rarity patron of love higher knowledge engulfs me...
bivhitscar is offline   Reply With Quote
Old Nov 1st, 2005, 6:53 PM   #5
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
Thank you muchs
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain

Destruction leads to a very rough road, but it also breeds creation.
bigguy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:33 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC