I have a relatively simple problem, I have a form with 3 pictureboxes, all I wish to do is make it so that you can change the color of a picturebox to either; Red, Amber or Green using a contextmenustrip. So they rightclick on the box and select a color.
So far however, I haven't been able to find anything useful apart from the following,
Private Sub ContextMenuStrip1_Click(sender As Object, e As EventArgs) Handles ContextMenuStrip1.Click
Dim cms As ContextMenuStrip = CType(sender, ContextMenuStrip)
Dim Item = cms.SourceControl.Name
End sub
But I can't seem to link it to the specific control to then change its color.
Sorry if this doesn't make much sense, I will try to reword it if neccessary. Thanks in advance.