A System.ArgumentException usually means that some value you specified
is not correct. In your original message you write "when images are more
than 20 pixels". You do know that the image size parameter for an
ImageList needs two values? You need to specify the width and the height
of the images in your ImageList, for example "20, 20", meaning each
image will be 20 pixels high, and 20 pixels width.
Hope this helps, otherwise, give us some more details, or the lines of
code that throw the ArgumentException.
I found the problem, it was in the bitmap format of the bmp image files. I
copied and pasted from Paint to another graphic program and it worked.
Thanks for your time
Carmen
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.