Question : Visual Studio 2008, Listbox location on picturebox insdie a form

I have a form that contans picturebox.  Inside the picturebox, I have placed a map.  The map is large so the picture box has scroll bars.  Operation:  When a user clicks on a button, a listbox appears and the user makes a choice.  It works perfect if the user clicks when the map is scrolled furthest to the left.  Problem:  If the user scrolls over to the right side of the map and clicks the same location button, the list box appears in varied places (sometimes off the map).  This happens on all the locations to the right side of the map.  I have tried locking the listbox, changing the anchor properties, changing the size of the form and nothing works on the right side of the map.  Any suggestions?  I have attached pictures of the situation.

Answer : Visual Studio 2008, Listbox location on picturebox insdie a form

No problem...  =)

Just holler if you want to use the common handler approach.  I know that would be a lot of work on your part and would probably temporarily "break" it while it is in-between states...so I understand if you want to leave your code as is.
Random Solutions  
 
programming4us programming4us