Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / April 2004



Tip: Looking for answers? Try searching our database.

Polygons in a PictureBox; How to Give them Names or IDs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mylo - 30 Apr 2004 06:14 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.