Solved

BackColor covers picture in picture box

Posted on 2001-07-16
4
246 Views
Last Modified: 2012-08-13
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
Comment
Question by:meravkn
  • 2
4 Comments
 
LVL 1

Expert Comment

by:superchook
ID: 6288629
look at the .autoredraw property to make the background image persistent.

0
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6288835
How about trying to use an image control with it's border set to 1?

That's it!

glass cookie : )
0
 
LVL 4

Accepted Solution

by:
VincentLawlor earned 50 total points
ID: 6288955
Change the background and then reload the picture

Have AutoRedraw = True

Vin.
0
 
LVL 1

Expert Comment

by:superchook
ID: 6292237
Thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now