Bonjour,
J'aimerai que mon logiciel se lance au démarrage de Windows. J'ai cherché, il y a beaucoup de sujets similaires. J'ai fais cela :
Lorsque je regarde ensuite dans le registre je ne vois pas de changement.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 Public Sub RunOnStart() Dim chemin As String = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) Dim Key As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", True) Key.SetValue("Helpyoo", chemin & "\Helpyoo.exe") Key.Close() Key = Nothing End Sub
Partager