Reputation: 41
I am very new to VB and trying to create a app called shortcut manager on my own. I am trying to Figure out how to use default Icons(like Icon for word or notepad etc) of programs/applications in any of VB.net form? or Question is how to get the default icon for a program in vb?
I want them to be on the buttons(which I wil create to open the application) that I have created. So that it will launch that perticular app once I will click that button..
Thanks,
Upvotes: 0
Views: 1641
Reputation: 18320
I use this to get an application's icon:
Dim ico As Icon = System.Drawing.Icon.ExtractAssociatedIcon(<path here>)
Upvotes: 1