Hi,
I have a panel control in windows form. And I want an Image on the background of the panel. But I dont want to loop through it to draw images to it.
My code actually draws an image multiple times. and I need it to do the same thing but I dont want loops.
Do any one have the solution?
Regards,
Syed Ahmed Hussain
I have a panel control in windows form. And I want an Image on the background of the panel. But I dont want to loop through it to draw images to it.
Code:
for (int i = 1; i <= 5; i++)
{
int height = Resource1.owners_icon.Height * i;
int width = Resource1.owners_icon.Width;
for (int j = 1; j <= 5; j++)
{
e.Graphics.DrawImage(Resource1.owners_icon, j * width, height);
}
Do any one have the solution?
Regards,
Syed Ahmed Hussain
Comment