Using a "skin" over a form

ValiantKhan
05-30-2002, 06:55 PM
How would I go about taking a picture and using that to cover my form.. but so that it covered my buttons.. so that if i click on the image in a certain spot, i.e. exactly were a button on my form is, I click the button.. but i dont see the button.. sorta just like putting a skin over the top of my form.

That probably made no sense whatsoever to you ppl. But any help or maybe just a slight push in the right direction would help. Thanks a bunch.

:)

-ValiantKhan

BillSoo
05-30-2002, 06:58 PM
For a normal rectangular form, you could simply load a picture using the LoadPicture function. Then you could place empty image controls over the "button" areas and respond to the click event in the image control.

If you need a weird shaped form, like an oval or something, check out either Tutors corner or the Code library for how to do that....

kaza-reo
06-01-2002, 07:34 PM
Ok i have done this..

First get a black and white image of you form how you want it shaped use the formshaper.bas and hidecolor the white areas (black = area you want to keep)

make sure you have the picture you want on form (coloured) in a picture box, set to invisible on forn

then use frm.paint picture Picbox.picture,0,0... etc

voila...

1 irregular chaped form... with buttons looking how you want easy as pie!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum