?
Solved

Image

Posted on 2003-02-26
3
Medium Priority
?
136 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
[X]
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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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

770 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