Image map in a form

J

jschping

Hi,

I am trying to create a seating application for a theater. I already created
a chart in Excel for every seat. I can save it as an image and use as the
background for my form.

I want to create a chart/form where the user clicks on a seat and a new form
pops up with that section showing the names of each person who bought that
seat. This way they can graphically see which seats are empty, and who is
seated where.

The problem is that there are over 500 seats!! I could make 500 tiny text
boxes over the image, and have their Click events coded, but that would make
me lose my mind.

Is there an easy way to code this? Could I make an image map like in an HTML
page to calculate the mouse position and use a formula to calculate which
seat it is? Is there a way to grab the relative mouse position?

I was thinking of making a text box cover each row in each section, but
that's still over 50 separate controls. I want something smarter.

Any ideas?

Thanks!!

John Schping
 
S

Stefan Hoffmann

hi,

I was thinking of making a text box cover each row in each section, but
that's still over 50 separate controls. I want something smarter.
Use a image map :)

Use the Mouse Move event of the image control to display status
information and the Mouse Down event for the form pop-up code.

Another solution is to use the WebBrowser control with an HTML page
containg a real image map and hook it its events. Or you may create your
own user control in C#/VB.Net and use it in your application.


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top