Transparent Buttons in VB??

Soldato
Joined
13 Feb 2004
Posts
2,654
Location
South Shields
Is it possible to have transparent buttons in VB6??
I know its possible when constructing a form in Access but can't seem to find a method of doing it in VB6..

I had a quick search on here and couldn't find anything..
Googling led to loads of results that really didn't tell me anything.. and loads of those experts exchange sites :mad:

The idea is that I've created an image in Photoshop and want to use that as a background.. I have already made the buttons in the psd file and just need a transparent button to lay over the top..

Thank you for any advice! :)
 
Soldato
Joined
27 Feb 2004
Posts
2,535
Location
Kent
In VB6 you can change the "style" property of a command button to 1-Graphical from the default style 0-Standard. you can then load a picture / image as the button background. This will be behind the text on the command button.

Is this what you want?

Mel
 
Soldato
OP
Joined
13 Feb 2004
Posts
2,654
Location
South Shields
Its an option I've already had a look at..
It still gives the "raised" look of a button by applying a border around it..

I don't think its possible.. which is wierd as m$ have support for it on Access.
Thanks for the pointer though.. I may have to use that option..
 
Soldato
Joined
27 Feb 2004
Posts
2,535
Location
Kent
You could use a "PictureBox" to hold the image - and put text on the graphic in Photoshop.

Make the image border 0-none and the "backcolor" same as form backcolor (excuse Microsoft spelling of colour!)

Then use the "Click" event to do whatever you would have done in the command button Click event?

Mel
 
Soldato
Joined
27 Feb 2004
Posts
2,535
Location
Kent
robmiller said:
If you're effectively removing the "button" part of the Button to leave just the text, why not just use a Label?

Can you put an image onto a label as background? - couldn't see that in properties - perhaps I missed it - haven't used VB6 in years (into VB.NET


Mel
 
Back
Top Bottom