If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Image map in a form
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 |
#2
|
|||
|
|||
Image map in a form
hi,
On 21.02.2010 09:46, jschping wrote: 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 -- |
Thread Tools | |
Display Modes | |
|
|