I created a list of points as the first section of my image map. There will eventually be 80+ sections each with their own number value.
If anybody can tell me how to make this particular section return a value of 20 to a label when the mouse is clicked inside the coordinates I laid out, that would be great!
If anybody can tell me how to make this particular section return a value of 20 to a label when the mouse is clicked inside the coordinates I laid out, that would be great!
vb.net Code:
Public Class Form1 Public Sub New() Dim pts As New List(Of PointF)() 's20 big pts.Add(New PointF(224, 75)) pts.Add(New PointF(232, 131)) pts.Add(New PointF(267, 131)) pts.Add(New PointF(276, 75)) pts.Add(New PointF(224, 75)) Me.InitializeComponent() Me.PictureBox1.Image = My.Resources.Dartboard_unlabeled_svg End Sub Private Sub PictureBox1_mouseclick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseClick End Sub End Class