dcsimg
Results 1 to 3 of 3

Thread: [RESOLVED] Hide PictureBox image while preserving imagelocation?

  1. #1

    Thread Starter
    Addicted Member ZenDisaster's Avatar
    Join Date
    Dec 2006
    Location
    Bay Area, CA
    Posts
    140

    Resolved [RESOLVED] Hide PictureBox image while preserving imagelocation?

    I'd like to hide the contents of a picturebox while still preserving it's imagelocation, width, height, borderstyle, top, left, and sizemod properties. Is this possible?

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    104,741

    Re: Hide PictureBox image while preserving imagelocation?

    Not unless you want to use GDI+ to draw over the Image. Either there's an Image in the PictureBox or not. There's no provision to hide the Image.

    You could simply store the path of the image in a String variable elsewhere, or you could create your own derived PictureBox class that exposes another property that will persist the last ImageLocation value when you clear the Image.

  3. #3

    Thread Starter
    Addicted Member ZenDisaster's Avatar
    Join Date
    Dec 2006
    Location
    Bay Area, CA
    Posts
    140

    Re: Hide PictureBox image while preserving imagelocation?

    Ok thank you jmc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width