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 / .NET Framework / New Users / August 2005

Tip: Looking for answers? Try searching our database.

Icon problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Dupont - 10 Aug 2005 14:59 GMT
I'm developping an apps which would manage 2 file type (I could foresee so
far).
I would like to provide each of them with its icon.

Now, in the "Good Old Win32 days" (which I never practice ;-) I could just
embed Icon resource in my app, with a negative index, and register with
windows shell API my file extension and icon index in my exe file.

Now the question is... how could I do that in .NET?
It looks like I will have only one icon possible, the app icon :-(

Signature

If you're in a war, instead of throwing a hand grenade at the enemy, throw
one of those small pumpkins. Maybe it'll make everyone think how stupid war
is, and while they are thinking, you can throw a real grenade at them.
Jack Handey.

AMercer - 10 Aug 2005 18:41 GMT
You can add as many icons as you want to your app.  Set the build action to
embedded resource.  The name of the icon in your program will be of the form
"appname.iconname.ico".  You can then create an icon object for any of the so
named embedded resources and assign it to a form or whatever.  doing this is
described in the online documentation.

> I'm developping an apps which would manage 2 file type (I could foresee so
> far).
[quoted text clipped - 6 lines]
> Now the question is... how could I do that in .NET?
> It looks like I will have only one icon possible, the app icon :-(
Lloyd Dupont - 11 Aug 2005 00:45 GMT
I don't think I will be able to pick them up with Windows Explorer if I do
that, I think I had tried without suceess and that they are not embeded in
.NET application the same way as they were embeded in win32 application,
there fore they don't show up when you do, let's say, change target icon for
a link.
Anyway I will try.

> You can add as many icons as you want to your app.  Set the build action
> to
[quoted text clipped - 18 lines]
>> Now the question is... how could I do that in .NET?
>> It looks like I will have only one icon possible, the app icon :-(

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.