In VB6.0 I have a form with a PictureBox with a picture of a map in
it.
I have also created several irregular shaped closed polygons
overlaying it to
show area boundaries in the map. Each polygon is made up from several
(10 to 20) lines, drawn using the LINE control/method.
When a user clicks in any of them, I can fill individual polygons with
colour
using the FILLCOLOR/FILLSTYLE properties and the X & Y of the point
where clicked.
HELP!
Can some whiz tell me how I can get VB to identify for me which
polygon the user clicked, eg give me a name for each polygon clicked
if I could work out how to name them, or give me an Index number if I
could work out how to make them into a control array, or any other
way!?
Thanks, before I go nuts!
Mylo
George Copeland - 30 Apr 2004 13:29 GMT
> Can some whiz tell me how I can get VB to identify for me which
> polygon the user clicked, eg give me a name for each polygon clicked
> if I could work out how to name them, or give me an Index number if I
> could work out how to make them into a control array, or any other
> way!?
One simple way would be to put an image control inside each polygon.