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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Painting a portion of a picture to array of picture boxes

Status
Not open for further replies.

MrVB50au

Programmer
Mar 16, 2003
326
AU
Hi,

I have made an activeX control button that has a picture box contained in it. I have created a background for a form and now want a portion of the background to be copied to these buttons of different size. how am I able to do so in the Form_Load event after the picture has been tiled on the form?

Thank you for your time,

Andrew G.

 
hmmmm..sounds interesting..

can you write the code of the Active X control ..i think i can help you..but i still need to study your code
 

There is some code in this thread708-428674 for capturing the desktop or portions of it. I think you should be able to use it to capture the form and then the portion of where your button is. Unfortunatly this will need to be done after the form is displayed with its graphic and if your button is visable at this time then you will get nothing but a picture of your button.

I hope this helps, Good Luck

 
ITProgrammer

I got it solved and it works great!! :))

Thanks vb5prgrmr

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top