06-10-12, 01:09 PM
انا لاقيت كود يجعل البرنامج يشتغل مع فتح الوندز ....
فى الجنرال
وفى الفورم:
لكن انا عندى دايماّ بيظهر خطأ ومش عارف اعالجة فى الكود دة
فى الجنرال
كود :
كود:
Private Function RegWrite(Key1, SValue As String)
Set WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite Key1, SValue
End Function
كود :
RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\programName", " path of the program"
كود :
Private Function RegWrite(Key1, SValue As String)
Set [color=#FF0000]WSHShell =[/color] CreateObject("WScript.Shell")
WSHShell.RegWrite Key1, SValue
End Function