' in general
Private Function regwrite(key1, sval As String)
Set wshshell = CreateObject("wscript.shell")
wshshell.regwrite key1, sval
End Function
' IN FORM LOAD
Private Sub Form_Load()
Dim AppPath As String
Dim AppTitel As String
Dim StrRegval As String
AppTitel = App.Title
AppPath = App.Path
StrRegval = AppPath & "\" & AppTitel & ".exe"
regwrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\Stringvalurname ", StrRegval
End Subابراهيم الطيب
السودان الخرطوم



