i have an image list, i am drawing it on form list-control.
i will get image bounds when the images gets added to list.
and it will come to draw-event there i get bounds.
instead how to get the bounds width and height at form-load.. i mean before drawing.
how to calculate it?.
i am using .net3.5 CF framework
Assuming you are using a list view control and the imagelist property then you can use
ListView.ImageList.ImageSize, although I don’t think that this changes automatically depending on the images you add, docs suggest it defaults to 16×16, so you will have to set it I guess.
You don’t say how you are loading the images, do you set the imagelist items at design time? Or do you load them from files at runtime? If you load them at runtime you can get the image size info from the file as you load it.