Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium



Posted on 2003-02-26
Medium Priority
Last Modified: 2010-05-01

I am using an image control to display a picture.  How do i make it so it only runs the click code if you click on the part of picture that is not transparent?
Question by:cjcujo

Expert Comment

ID: 8029099
you could trim the image box so that it only contained non-transparent images.

Expert Comment

ID: 8030094
It depends... If you can change the picture, then open it up (I.E. with Microsoft Photo Editor), click Set Transparent Color and click on the background color you want. If you can't edit it then you have to use regions. For example, if there's a box (Region) in the middle that is transparent, use
If X > Region.Left and X < Region.Right and Y > Region.Top and Y < Region.Bottom Then Exit Sub
Or something like that replacing the Regions with the actual numbers. Hope that helps...?

Accepted Solution

All_Hail_Caesar earned 40 total points
ID: 8050709
You Cannot

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month13 days, 9 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question