Oct 26th, 2001, 11:08 AM
#1
Thread Starter
PowerPoster
Windows Startup Setting
How do I give my app the option to load when Windows 2000 starts up?
Thanks
Oct 26th, 2001, 11:09 AM
#2
PowerPoster
Well
The option? Put it in the start menu?
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
Oct 26th, 2001, 11:10 AM
#3
Thread Starter
PowerPoster
but HOW do I do that on lets say a checkboxes on change event?
thanks
Oct 26th, 2001, 11:13 AM
#4
PowerPoster
Well
You mean a choice to the user of whether or not to add the exe to the start menu?
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
Oct 26th, 2001, 11:14 AM
#5
Thread Starter
PowerPoster
Oct 26th, 2001, 11:22 AM
#6
Thread Starter
PowerPoster
Oct 26th, 2001, 11:33 AM
#7
PowerPoster
Well if they tick the box, make an entry in the reg at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
If they untick it, remove said entry
Oct 26th, 2001, 11:35 AM
#8
Thread Starter
PowerPoster
thanks chrisjk but this is the first time I ever mess with the registry and I don't even know how to do that.
Oct 26th, 2001, 11:58 AM
#9
PowerPoster
okay. Requires attached module
VB Code:
Private Sub Check1_Click()
If Check1.Value = 1 Then
'enter key
SaveSettingString HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Run", App.Title, App.Path
Else
'remove it
DeleteValue HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Run", App.Title
End If
End Sub
Private Sub Form_Load()
Check1.Caption = "Load " & App.Title & " at startup"
End Sub
Attached Files
Oct 26th, 2001, 12:05 PM
#10
Thread Starter
PowerPoster
this is good but when I unload my app and load it again, the chekc box is not checked. How can I check if the setting is made?
thanks
Oct 26th, 2001, 12:08 PM
#11
Thread Starter
PowerPoster
hold on is SOFTWARE the name of my app?
See I am just running a compiled exe right now. I didn't install it through a set up package. Does this pose a problem?
Oct 26th, 2001, 12:54 PM
#12
PowerPoster
1) yeah I realised that, I'm trying to find a way of querying the existance of a key
2) no, leave it as it is.
Oct 26th, 2001, 12:55 PM
#13
Thread Starter
PowerPoster
thanks I will await ur response!
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width