Results 1 to 3 of 3

Thread: Clickable Hidden Object

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2003
    Posts
    36

    Question 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.

  2. #2

    Thread Starter
    Member
    Join Date
    Jul 2003
    Posts
    36
    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?

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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
  •  



Click Here to Expand Forum to Full Width