Solved

BackColor covers picture in picture box

Posted on 2001-07-16
4
247 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

832 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