VB.net Question

  • Thread starter Thread starter Alan
  • Start date Start date
A

Alan

dear all,

I saw a program using VB.NET can auto-startup/ execute after logon the
Windows. However, the program is not run as the startup menu?

what function can vb.net detect the logon progressing so as to auto-run?

Thanks
 
Windows has a few possibillities to autostart a program
when you login to windows.

- via the startup menu
- via the registry

You can use this last one in your Setup project to deploy
your application so that the registry settings will be
added when you install the application.

Registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Run

In this Key you create a new DWORD and give it a name.
The value should be the executeable that you want to start
when you logon to Windows.

I hope this helps.

Kind regards,

Gette
 
Hi Alan,

well, you can also make ur vb.net application or any kind of application, or
any file run after windows logon without putting it in Startup, it can be
done by writing into registry of Windows, registry key for the startup this
is:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]

hope this helps.
 
Thanks for you reply

However, the program is not edit the registry. It is because I only copy
some file, some DLL, in whatever the location in PC. It can execute the
program after logon.
 
Back
Top