Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
My.Computer.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True).SetValueApplication.ProductName, Application.ExecutablePath)
You can move a copy of ur .exe in code to d startup folder of the current user if not there with this code- My.Computer.FileSystem.MoveFile(current .exe path,new .exe path-["C:\Documents And Settings\" & Environment.User & "\Startup\program.exe"]. This works on windows xp cos this is the path to the startup folder as arranged by the OS.
i think the most simple way is this that when you make setup of your application to deploy it on your client machine , the window where you add all your files present in bin folder , and create shortcut at the desktop , there are two columns , you just right click on the left column , and a pop up window will open , just select startup folder and click it , then startup folder option will add into your left column , now select it and right click on the right column and select add shortcut and select the exe file same as you done before in desktop folder case , THAT's IT
now just simple install your application in any computer , your application will automaticaly add a shortcut to your startup folder , and will run when ever computer is starts .
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...