Drawing on panel removes graphics.

S

Shawn

I know the answer to this is right under my nose, but I think I'm too tired
to recall it. I have a form that uses a picture as it's background upon
loading. I then have a panel on top of it that is used to click on and
create a box on the area that was clicked on. What happens is when the box
appears, the background image disappears. What simple thing am I forgetting?
 
H

Homer J Simpson

I know the answer to this is right under my nose, but I think I'm too tired
to recall it. I have a form that uses a picture as it's background upon
loading. I then have a panel on top of it that is used to click on and
create a box on the area that was clicked on. What happens is when the box
appears, the background image disappears. What simple thing am I
forgetting?

Is the box transparent?
 
S

Shawn

Yes, but I actually figured out a bett work around. I create a button that
looks like the box I created and just change it's location according to
where the box would have been. After setting it's color to transparent, it
actually works great.
 
H

Homer J Simpson

Yes, but I actually figured out a bett work around. I create a button that
looks like the box I created and just change it's location according to
where the box would have been. After setting it's color to transparent, it
actually works great.

OK. You have to find out which item you actually need to draw on. You can
wind up with 2 or 3 layers on top of your form at times.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top