Image Click Event

Posted on 2003-03-23
Medium Priority
Last Modified: 2010-05-01
I have some image controls with pictures in it that have transparent edges.  This makes the picture to appear to be a different shape then a rectangle.  I would like the image click event to only run if the part that is not transparent is clicked, or the click event can run but i would like to be able to have it so it only does a certain part of code if it was clicked on the part that is not transparent.
Question by:dawgmaster
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8192826
One thing you could try is too pictures, the one the users see,and one for your reference, but the one for you is two colors any two not important lets black and white. First the two pictures should be overlapping, so you have the one they see and your invisible black and white one, your black and white one should be all black except where the other is transparent, there its white. then when they click the transparent you check if the x y lets say 4,10 is black or white on the other picture box if its white then ignore it otherwise you can continue, because it was not a transparent spot.

Accepted Solution

AlbertoFrog earned 320 total points
ID: 8194152
This question has already been answered.


It's got a VB solution in there as well.


Expert Comment

ID: 8531769
Hi dawgmaster,
This old question (QID 20560446) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

765 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