Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

What OS are you trying to work with?

In Win9x you can use msconfig to set a startup program.

In Win2K XP try to make it as a service if you can.

  • *Experts*
Posted

You can set it using the RegistryKey class:

Dim key As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine
'dim RegistryKey class and set it to LocalMachine
key = key.OpenSubKey("Path to the key", True)
'open the sub key
key.SetValue("YourAPP", "PATH") 'create new entry
key.Close() 'close and flush the key

  • *Experts*
Posted

Dont put this in it:

HKEY_LOCAL_MACHINE\

You already specified it as the LocalMachine here:

Dim key As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine

Posted (edited)

Omg that is awesome, thanks mutant, you helped me too lol. :p

 

 

------------------------------------Edit-------------------------------

 

 

Wait wait, the place where you put the application name. Let's say if I wanted to add notepad at startup, would the Application name be:

 

notepad?

notepad.exe?

NOTEPAD?

ProcessID?

 

And what if I created an application that is named: notepad?

 

Would they both startup (the one from system32 and the one I created?)

Edited by Diablicolic
"Reality is fake, Dreams are for real"
  • *Experts*
Posted
You can call it whatever you want, the name of the key isnt tied to the name of the app. But its good to know what starts up so you should put in some name that can easily identify your app.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...