VB.Net: How to get the exe's icon
Posted on 2004-10-14
in my Vb.Net windows application I want to use
the icon of the created exe file.
Getting the form's icon I can use
and I can modify the form's icon using
Me.Icon = New System.Drawing.Icon(System.Windows.Forms.Application.StartupPath & "myicon.ico")
How can I use the exe's icon in the following statement?
Me.Icon = .... ' ???
The exe icon is set using the properties of the project.
If anyone knows a solution,
please supply related code.
Thank you very much for every help.