473,324 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

ImageList

One more quick question. I am creating a form that uses an ImageList
control. I originally wanted to use a PictureBox control to display the
images in the ImageList, but it doesn't seem possible. I found a
work-around and used a Label to display, but I'm interested to know if the
PictureBox can use an ImageList or not? It would seem to make sense...

Thanks,
Michael C.
Nov 16 '05 #1
2 6648
Hi Michael,
One more quick question. I am creating a form that uses an ImageList
control. I originally wanted to use a PictureBox control to display the
images in the ImageList, but it doesn't seem possible. I found a
work-around and used a Label to display, but I'm interested to know if the
PictureBox can use an ImageList or not? It would seem to make sense...

Thanks,
Michael C.


If your images have the same size and their size is less or equal
to 256x256 then ImageList make sense!
But if you want to display images with different sizes or larger
images then you should find the other way.

PictureBox and ImageList sample:

pictureBox1.Image=imageList1.Images[0];

Regards

Marcin
Nov 16 '05 #2
Hi Marcin,

In this instance the images are small icon-ish images - 32x32. I might even
go up tp 64x64 in the future, but should never get up to 256x256.

Thanks,
Michael Coles

"Marcin Grzêbski" <mg*******@taxussi.no.com.spam.pl> wrote in message
news:ca**********@nemesis.news.tpi.pl...
Hi Michael,
One more quick question. I am creating a form that uses an ImageList
control. I originally wanted to use a PictureBox control to display the
images in the ImageList, but it doesn't seem possible. I found a
work-around and used a Label to display, but I'm interested to know if the PictureBox can use an ImageList or not? It would seem to make sense...

Thanks,
Michael C.


If your images have the same size and their size is less or equal
to 256x256 then ImageList make sense!
But if you want to display images with different sizes or larger
images then you should find the other way.

PictureBox and ImageList sample:

pictureBox1.Image=imageList1.Images[0];

Regards

Marcin

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: A. Solomon | last post by:
Hi, I have a ImageList containing 4 bitmaps attached to a UserControl which acts as a Open/Close panel. This panel, upon click, switches the image in a PictureBox control to indicate the...
2
by: Bob C. | last post by:
Hi All, I am using the ImageList/ListView Components to display around 100 images in C#.NET. The issue i have is, some times i may need to display the thumbnail of size more then 256x256 in...
2
by: Sanjeeva Reddy | last post by:
hai Anti Keskinen, i have used the following code MyListView->LargeImageList->ImageSize = gcnew System::Drawing::Size(100, 100); // Sets large image size to 100, 100 here i am getting error...
7
by: Andrew Christiansen | last post by:
Hey everyone. I have Visual Basic .NET 2003 and am trying to show images on a treeview control. I have the imagelist on the form filled with images, and have the ImageList property of the...
4
by: David | last post by:
I have a problem that just cropped up with using an ImageList in my project I am using VB .NET 200 Problem: I have existing Form with 2 Image List controls. ImageList16 (for 16x16 Images) and...
4
by: Just Me | last post by:
If I add an image to an imagelist using imageList.Images.Add... And use it with a tree node tn.ImageIndex = imageList.Images.Count-1 This is the actual code:...
0
by: Andre Viens | last post by:
Hello, I am using the following variation of code from <http://support.microsoft.com/default.aspx?scid=kb;EN-US;319340> to add icons to an imagelist for use in a listview: Private Structure...
6
by: henrycortezwu | last post by:
Hi, I have a WinXPSP2, P4 3.2GHZ, 1GIG RAM on my dev machine using VS2005 VB.NET. I did the following procedure: 1. Added 82 icons (128x128 in size & 32bit Depth) in an imagelist control 2....
0
by: gene kelley | last post by:
(using VS2005) I want to add an icon to TreeView nodes. 1) To a new project (VB or C#) I add a sample TreeView with some sample nodes. I add an ImageList component, and add one icon image. I...
2
by: =?Utf-8?B?S2VuTg==?= | last post by:
We're using a System.Windows.Forms.ImageList to store a bunch of Images that I've loaded, and rendering each image in the ImageList during a draw loop. The process was running unusually slow and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.