can a desktop icon, used to launch an application window like windows
explorer, be a child control in a window form? I checked the windows
forms controls in VS2005 and did not see any such control.
I would like my code to display all the .LNK files in a directory on a
form, handle the single and double click events on the icon, launch
the application when double click, ...
thanks,
-Steve
Ignacio Machin ( .NET/ C# MVP ) - 31 Jan 2008 20:09 GMT
Hi,
It'not that simple, the Icons are not independly entities, they are embedded
in .EXE and extracted and displayed in the screen.
The link file just says where to get the icon from.
Dont' remember if there is a managed way to extract the icon from a .exe

Signature
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
> can a desktop icon, used to launch an application window like windows
> explorer, be a child control in a window form? I checked the windows
[quoted text clipped - 7 lines]
>
> -Steve
Steve Richter - 31 Jan 2008 20:54 GMT
On Jan 31, 3:09 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.com> wrote:
> Hi,
>
> It'not that simple, the Icons are not independly entities, they are embedded
> in .EXE and extracted and displayed in the screen.
> The link file just says where to get the icon from.
good to know. thanks.
Ben Voigt [C++ MVP] - 31 Jan 2008 21:29 GMT
> can a desktop icon, used to launch an application window like windows
> explorer, be a child control in a window form? I checked the windows
[quoted text clipped - 3 lines]
> form, handle the single and double click events on the icon, launch
> the application when double click, ...
I guess you are looking for a "Explorer View" control rather like the
ListView common control. Don't know of any.
There are customization callbacks for the File Open dialog that allow
unlimited extensibility. So instead of having a control to embed in your
form, you can use the File Open dialog as your form and add the other
controls you need.
> thanks,
>
> -Steve