Should I use the PictureBox Image or BackgroundImage

F

Frank

For various reasons I want to use a PictureBox to display images.
That is I want sometimes to assign an Image to the PictureBox
Sometimes I want to draw on that Image.

What are the reasons for and against using the PictureBox Image property,
and what are they for using the
BackgroundImage.



Looking for help in deciding which to use.





Thanks
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

| For various reasons I want to use a PictureBox to display images.
| That is I want sometimes to assign an Image to the PictureBox
| Sometimes I want to draw on that Image.
|
| What are the reasons for and against using the PictureBox Image property,
| and what are they for using the
| BackgroundImage.

Background is that, a background image for a control which has other
features, it won't be nice (or smart) to use let's say a Textbox just for
its background image instead of his main feature.

With such little details as you provided in your post I would suggest u to
go with the PictureBox
 
F

Frank

Thanks, I am going with the PictureBox but wonder if I should use the Image
or BackgroundImage to draw on.
 

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.

Ask a Question

Top