471,610 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

Should I use the PictureBox Image or BackgroundImage

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
Feb 5 '07 #1
2 3091
Hi,

" Frank" <fr***@a-znet.comwrote in message
news:Oy**************@TK2MSFTNGP06.phx.gbl...
| 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

--
Ignacio Machin
machin AT laceupsolutions com
Feb 5 '07 #2
Thanks, I am going with the PictureBox but wonder if I should use the Image
or BackgroundImage to draw on.
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:uA**************@TK2MSFTNGP06.phx.gbl...
Hi,

" Frank" <fr***@a-znet.comwrote in message
news:Oy**************@TK2MSFTNGP06.phx.gbl...
| 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

--
Ignacio Machin
machin AT laceupsolutions com


Feb 5 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by active | last post: by
2 posts views Thread by Wade | last post: by
1 post views Thread by Ricardo Furtado | last post: by
4 posts views Thread by munglet | last post: by
reply views Thread by Jerry West | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.