Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / January 2008

Tip: Looking for answers? Try searching our database.

window form contains desktop icon

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Richter - 31 Jan 2008 18:47 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
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.