Results 1 to 13 of 13

Thread: Windows Startup Setting

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Talking Windows Startup Setting

    How do I give my app the option to load when Windows 2000 starts up?

    Thanks

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    The option? Put it in the start menu?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    but HOW do I do that on lets say a checkboxes on change event?
    thanks

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    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....

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    yes for sure

  6. #6

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    ???

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    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

  8. #8

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    thanks chrisjk but this is the first time I ever mess with the registry and I don't even know how to do that.

  9. #9
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    okay. Requires attached module
    VB Code:
    1. Private Sub Check1_Click()
    2.  
    3. If Check1.Value = 1 Then
    4.     'enter key
    5.     SaveSettingString HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Run", App.Title, App.Path
    6. Else
    7.     'remove it
    8.     DeleteValue HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Run", App.Title
    9. End If
    10.  
    11. End Sub
    12.  
    13. Private Sub Form_Load()
    14.  
    15. Check1.Caption = "Load " & App.Title & " at startup"
    16.  
    17. End Sub
    Attached Files Attached Files

  10. #10

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    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

  11. #11

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    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?

  12. #12
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    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.

  13. #13

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    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
  •  



Click Here to Expand Forum to Full Width