Help
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts
Page 1 of 1
Re post right i need to make an app launcher i need it to creat a shortcut to the .exe on the dekstop of any program draged into a listview i need this for a special feture that it has so anyone able to help
umm sorry but it dont really look i am using this code
here to start the app that you click on in the bar
soo really all i need to know is on the drag drop even how can i make it create a shortcut in desktop and then i will be done i can run and do the rest by my self but that tut allthough it works would mean changing the above code and doing this would make some fetures of the program not work because this is a little moer then just an app bar and this is the last thing to be before release soo
here to start the app that you click on in the bar
Code: Select all
then i am using this to get the apps and icons into the bar
Private Sub lwDesktop_ItemSelectionChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.ListViewItemSelectionChangedEventArgs) Handles lwDesktop.ItemSelectionChanged
fileName = My.Computer.FileSystem.SpecialDirectories.Desktop + "\" + e.Item.Text
End Sub
Private Sub lwDesktop_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles lwDesktop.DoubleClick
Process.Start(fileName)
End Sub
Dim fileName As String = ""
Dim folderLocation As String = My.Computer.FileSystem.SpecialDirectories.Desktop
Code: Select all
For Each I In My.Computer.FileSystem.GetFiles(My.Computer.FileSystem.SpecialDirectories.Desktop)
Dim Desktop_Icon_add As System.Drawing.Icon = Icon.ExtractAssociatedIcon(I)
DesktopImages.Images.Add(Desktop_Icon_add.ToBitmap)
I = I.Replace(My.Computer.FileSystem.SpecialDirectories.Desktop & "\", "")
lwDesktop.Items.Add(I, DesktopImages.Images.Count - 1)
Next
soo really all i need to know is on the drag drop even how can i make it create a shortcut in desktop and then i will be done i can run and do the rest by my self but that tut allthough it works would mean changing the above code and doing this would make some fetures of the program not work because this is a little moer then just an app bar and this is the last thing to be before release soo
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023