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# / March 2008

Tip: Looking for answers? Try searching our database.

Adding icons in resource file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 23 Mar 2008 21:06 GMT
Is there such a thing as storing icons or bitmaps into a resource
file, and adding more icons or bitmaps into the resource file at
runtime?

I want to store a bunch of icons into a resource file, and at runtime
I want to be able to add more icons as I need to add.  I don't want
to use an imagelist because that will be a set number of icons in the
program.

Thanks

John
Peter Duniho - 24 Mar 2008 00:39 GMT
> Is there such a thing as storing icons or bitmaps into a resource
> file, and adding more icons or bitmaps into the resource file at
> runtime?

No, not really.  Your executable file is not writeable while it's running,  
and so you can't modify it by adding new resources.

> I want to store a bunch of icons into a resource file, and at runtime
> I want to be able to add more icons as I need to add.  I don't want
> to use an imagelist because that will be a set number of icons in the
> program.

If there's "a set number of icons in the program", why do you want to add  
more icons?  Seems to me, by definition there's not a set number.  The  
number can change according to how many you add.  (Not that using an  
ImageList would change the fact that you can't modify the resources in  
your executable while your executable is running, but still...)

You'll simply need to include some mechanism for storing the additional  
icons elsewhere.

Pete

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.