Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 18th, 2007, 11:36 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default ImageList control

A library book was discussing the advantages of the ImageList control. However, it's for whatever version came before C# 2005, and it describes using the ImageList property of whatever control you want to pull the images in. Well, in C# 2005, my buttons, toolbars, etc. don't have an ImageList property. And MSDN is only giving me ways to get images into the ImageList, not get them out. How do I access the images once they're in my ImageList. Is this a basically defunct control that isn't used much anymore?

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
__________________
-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
 
Old December 19th, 2007, 10:13 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

here is link in MSDN to add and remove in imagelist control.

http://msdn2.microsoft.com/en-us/library/fat9bdzd(VS.80).aspx

if this can help you.


thanks......
 
Old December 19th, 2007, 10:23 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

According to this page the ImageList can still be associated with the Button control:
http://msdn2.microsoft.com/en-us/library/9487c8x3(VS.80).aspx

I also see the ImageList property in Visual Studio 2005.

What exactly is your problem?

/- Sam Judson : Wrox Technical Editor -/
 
Old December 21st, 2007, 09:37 AM
Authorized User
 
Join Date: Sep 2007
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not sure if it is a good thing to use ImageList. Shouldn't resources including images go to satellite assembly?

 
Old December 22nd, 2007, 12:36 AM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

I guess that may be more my question at this point; it seems like it's role has been drastically scaled back since that book was written. Has the Imagelist been replaced by .resx files? Is best practices to pull images directly into a control from resources?

PS My development box at home is not online. I found the downloadable .iso to write VS2008 to DVD, but I don't have a DVD writer on any computer. I can borrow my friend's computer when we go visit in January, but is there any other way to get the new Express editions on my computer? I'm excited to get started now.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to put a button control in a GridView control ryan.webb ASP.NET 2.0 Basics 2 December 28th, 2007 05:26 AM
ImageList problem/bug nabeelkhan C# 2 April 13th, 2007 02:11 AM
ImageList/transparency problem jacob C# 0 February 27th, 2006 08:37 AM
Help! Custom Server Control using User Control diehard ASP.NET 1.0 and 1.1 Professional 2 January 4th, 2006 12:33 PM
Looping Images in ImageList? Nick.Net VB.NET 2002/2003 Basics 0 September 10th, 2004 08:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.