Results 1 to 3 of 3

Thread: Req: Hyperlink images on a large image

  1. #1

    Thread Starter
    Hyperactive Member jokerfool's Avatar
    Join Date
    Dec 2006
    Location
    Gold Coast, Australia
    Posts
    452

    Req: Hyperlink images on a large image

    So I can hyperlink an image using

    Code:
    Process.Start("http://www.vbforums.com")
    If I have a large image with lots of small images on it how does one hyperlink each one of the small images or is this even possible?

    Thank you

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Req: Hyperlink images on a large image

    Handle the MouseClick event of the PictureBox containing the Image and then determine which area the click occurred within to decide which URL to pass to Process.Start. You can define the areas with Rectangles or Regions as appropriate. You could even define a class that encapsulated all the functionality of mapping those areas to URLs. VB.NET is an OO language after all, so implementing an image map in an OO manner is the intended way to go.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member jokerfool's Avatar
    Join Date
    Dec 2006
    Location
    Gold Coast, Australia
    Posts
    452

    Re: Req: Hyperlink images on a large image

    Im a bit confused on your comment. The image displays many small images and I need to hyperlink each individual image, can you give me a code example please?

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