Hi guys,
I am wondering if anybody know's how i can make it so a user can press a commnd button and stop my application running on windows startup.
This is the code i used to make it run on start up :
Is there a way to make another command cancel that code and stop it from running on start up??Code:Option Explicit Private Sub cmdTest_Click() Dim mRtn As Boolean 'Just call it mRtn = AddToStartUp(App.EXEName, App.Path & "\" & App.EXEName, True) If mRtn Then MsgBox "Well Done!!", vbInformation Else MsgBox "Error occured", vbCritical End If End Sub
Thanks!




Reply With Quote