Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX Controls Made Transparent

Status
Not open for further replies.

MrVB50au

Programmer
Mar 16, 2003
326
AU
Hello Everyone,

I have an application that uses backgrounds. Now that the backbrounds a nice to look at, the boring CommandButtons are not.

I followed the manual Visual Basics Component Tools Guide, and followed the step by step instructions to create an ActiveX Component. I made some adjustments to have the background transparent, put it in run mode I see nothing.

Let me simplify this ok?

I created the ShapeLabel ActiveX component. I then made the UserControl to be tansparent. I ran it, and saw nothing.

What am I doing wrong?
I need to create a transparent button to replace those ugly looking CommandButtons.

Any help in relation to this would be appreciated.

Andrew G.
 
what do you expect, transparent means that it is see through. That means EVERYTHING in it is see through not just the background. What you are after is more like the label control backstyle property. This would mean you would have to do your own painting and blit the background of what is under your control before doing your drawing.

In short what you are seeing is by design. Transparent controls is there so you can make controls that have no user interface like a timer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top