How to make my program run at startup?

后端 未结 7 1787
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-15 14:28

I\'m programming a desktop application similar to Google desktop but with my own gadget with vb.net 2008 how can i make my application when the user install it on their comp

相关标签:
7条回答
  • 2020-12-15 14:55
    Imports Microsoft.Win32
    
    ...
    
    Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", Application.ProductName, Application.ExecutablePath, RegistryValueKind.String)
    
    0 讨论(0)
提交回复
热议问题