If the imagemap hotspots are rectangular in shape, then you try the following procedure.
Add a picture box to a form, and load the image into the picture box.
Then add a series of labels to the picture box, set the captions to null, flat, no border, and transparent. Then use the labels' click events to trigger the action. The desired action would dependant on which label is clicked. An array of labels would work well in this case.
Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
thanks Cajun didn't think of that but I suppose that would work
80 maps and over 50 click points on each
4k labels Erk
hmm maybe I will just add alot of them and fill the picture box so that I can enable and disable them as needed.
Or I suppose I can create dynamic ones?
Ok thanks will look into it and experiment maybe if I get something decent working I will post it in the tips as I prolly aint the only one that would want to do this
Because of number of controls limitations, you'll have to use a control array for the labels. If you can determine the number, position, and size of each label, then adding them programmatically makes sense, and its the approach that I would take. I might even go a step further, and create a database which contains the specifics for each label, and have the program read that from the database, and dynamically add each label to the control array and position accordingly. One advantage is that you can move and/or resize any or all of the labels without having to change the program every time. Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.