How To Make Application Run At Startup Windows USING VB.NET

Опубликовано: 26 Октябрь 2024
на канале: VB.NET
3,205
36

How can i automatically start a vb.net application on windows startup ?

#Code:
Sub CreateShortCut(File As String, ShortCutPath As String)

Dim oShell As Object
Dim oLink As Object
'you don’t need to import anything in the project reference to create the Shell Object

Try

oShell = CreateObject("WScript.Shell")
oLink = oShell.CreateShortcut(ShortCutPath)
oLink.IconLocation = File
oLink.TargetPath = File
oLink.Arguments = ""
oLink.WindowStyle = 1
oLink.Save()

Catch ex As Exception

End Try

End Sub

Introductions :
All About VB.NET Programmings(Visual Basic .NET) Using Visual Studio 12 and Above
Programming as never seen before ...

---------------
Playlist :

1.Visual Studio
   • Visual Studio  

2.Controls-Toolbox
   • Controls - ToolBox  

3.Events
   • KeyDown - textbox Event USING VB.NET  

4.Design
   • Change Controls Style On RunTime With...  

5.Crystall Report
   • Crystall Report  

6.DATABASE, SQL SERVER, ACCESS
   • DATABASE, SQL SERVER, ACCESS  

7.Access Project
   • Access Project  

8.Tips and Tricks
   • Tips and Tricks  

9.Generals Codes:
   • ShortCode { : } USING VB.NET  

10.Windows
   • Change Current System Locale and Numb...  

11.Tools
   • Tools - Decompile To Recovery Code US...  

12.Errors
   • ERRORS  

13.Projects
   • VB.NET Programming How to Create EAN-...  

---------------

Facebook Group :
  / 557992827685165  

Youtube Channel :
   / @vbnetprogramming