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

x
?
Solved

Image

Posted on 2003-02-26
3
Medium Priority
?
137 Views
Last Modified: 2010-05-01
Hello

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?
0
Comment
Question by:cjcujo
3 Comments
 
LVL 2

Expert Comment

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

Expert Comment

by:YoShiZnit123
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...?
0
 

Accepted Solution

by:
All_Hail_Caesar earned 40 total points
ID: 8050709
You Cannot
0

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