Should I use the PictureBox Image or BackgroundImage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank

    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


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

    #2
    Re: Should I use the PictureBox Image or BackgroundImage

    Hi,

    " Frank" <frank@a-znet.comwrote in message
    news:Oyv93lTSHH A.5100@TK2MSFTN GP06.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


    Comment

    • Frank

      #3
      Re: Should I use the PictureBox Image or BackgroundImage

      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:uAkwdyTSHH A.2124@TK2MSFTN GP06.phx.gbl...
      Hi,
      >
      " Frank" <frank@a-znet.comwrote in message
      news:Oyv93lTSHH A.5100@TK2MSFTN GP06.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
      >
      >

      Comment

      Working...