hi everyone.......
i'm developing a system (winform). it is best viewed in 1024x768 resolution. this system have a banner (in a groupbox) that docked at the top of the program. i have 3 images (.jpg) that i will use as the groupbox background. These 3 images has different colors (blue, green and silver) based on the windows xp theme.
this program can detect what theme that the user use and the background image that will be used will be the same color like the theme that were use by the user.
i've already put all of this 3 images in an imageList.
the problem is, the maximum width and height of the imageList is 256x256, while my 3 images has the width and height of 1024x100.
so when i run the program, the background image will be tiled in the groupbox that means the same images is printed repeatedly because the maximum width is 256 while i want it to fill the groupbox with the width of 1024.
is there any method to solve this.
thanks in advance.

stretching backgroundimage
tour_of_delusion
actually i wanted my images to be the backgroundimage of my groupbox.
i cannot simply set the background in my coding like this:
groupbox.BackgroundImage = "somepath/someimage.jpg";
so i put the images in an imagelist component so that i can set the backgroundimage like this:
groupbox.BackgroundImage = imageList.Images[0]; // 0 = blue, 1 = green, 2 = silver
the groupbox has the width and height of 1024x100 so as the image but the imagelist maximum width and height is 256x256. i cannot set the imagelist to set the images tile, stretch or center.
I hope this explains better
vdovjak