[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

BackColor covers picture in picture box

Hi,

In the application I'm working on, I have a picture box. The back color in design time is white. I give the user the opportunity to place a picture in the picture box, and then change the background color with common dialog box. The problem is that the "backColor" covers the picture! why??? and how do I prevent that?
0
meravkn
Asked:
meravkn
  • 2
1 Solution
 
superchookCommented:
look at the .autoredraw property to make the background image persistent.

0
 
glass_cookieCommented:
How about trying to use an image control with it's border set to 1?

That's it!

glass cookie : )
0
 
VincentLawlorCommented:
Change the background and then reload the picture

Have AutoRedraw = True

Vin.
0
 
superchookCommented:
Thank you
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now