Hello There
im trying to make an application which on start ask the user to browse for a .lnk file
Once the lnk file has been browsed,the application is shown and there are two buttons
1.Launch
2.Exit
When The Launch Button Is Clicked,The .lnk File which the user browsed to at application startup should open.
On exit,well it just exits the application!
and the openfiledialog should pop up only for the first time the user ever opens the application.the file path should be stored in a .txt or .ini or registry file so that next time he doesnt have to browse for it again..how would i go about doing this!Here is my code so far!
Please help me out!
I Would Really Aprreciate If You Posted The Code Here,Im A Mega Noob In This
I Really Need This
Thank You!
im trying to make an application which on start ask the user to browse for a .lnk file
Once the lnk file has been browsed,the application is shown and there are two buttons
1.Launch
2.Exit
When The Launch Button Is Clicked,The .lnk File which the user browsed to at application startup should open.
On exit,well it just exits the application!
and the openfiledialog should pop up only for the first time the user ever opens the application.the file path should be stored in a .txt or .ini or registry file so that next time he doesnt have to browse for it again..how would i go about doing this!Here is my code so far!
VB.NET:
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim res As MsgBoxResult = MsgBox("Are you sure to exit B3 Launcher?", MsgBoxStyle.Exclamation + MsgBoxStyle.YesNo)
If res = MsgBoxResult.Yes Then
Close()
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
openFD.InitialDirectory = "C:\"
openFD.Title = "Browse To Your Server's Shortcut"
openFD.Filter = "Server's Shortcut|*.lnk"
openFD.ShowDialog()
End Sub
Private Sub openFD_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles openFD.FileOk
End Sub
End Class
I Would Really Aprreciate If You Posted The Code Here,Im A Mega Noob In This
I Really Need This
Thank You!