|
-
Nov 15th, 2003, 11:45 AM
#1
Thread Starter
Member
Clickable Hidden Object
So I noticed a big limitation with .NET and hidden clickable areas. For example in VB6 If I wanted to have the user click a small square area on a large image and do something I would just place a image or blank transparent label over the hot spot and clode the click even of the object.
With .NET the transparent object will only take the color of the form background.
Does anyone know a way to create a transparent object (any object) in .NET? I need the object to be on the top layer and still clickable. When running the application the user will not see the object but when clicking where the object is it will perform an action. I must be able to see through the hidden object to view the picture in the background. Solid background colors are not an option as the image background is a photo.
-
Nov 15th, 2003, 01:30 PM
#2
Thread Starter
Member
Something related that could also solve this problem is the image object. .NET has only a PictureBox and not an ImageBox. VB6 has both. From the components list I can add an Image box but it is grayed out. I have .NET 2003 Enterprise edition. Does anyone know how to use an Image object (Not PictureBox) in .NET?
-
Nov 15th, 2003, 08:12 PM
#3
I wonder how many charact
Regarding your first question:
This seems more like a design issue to me. You seem to rationalize that you need a transparent object in order to handle the mouse click in a certain 'hot spot'. I would ask you, why can't you just handle this in a mouse event handler of either the picturebox or the whatever you .DrawImage your image on. Why create a whole new control to handle this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|