I would like to click a button I have created programmatically, and for it to generate a message box (Visual Basic) This is the code that generates the button:
Dim NodeButton As New Control
NodeButton.Name = "Button" & NodeID
NodeButton.BackColor = Color.Red
NodeButton.Text = NodeID
NodeButton.Size = New Point(ButtonSize, ButtonSize)
NodeButton.Location = New System.Drawing.Point(Xcoordinate, YCoordinate)
frmMain.Controls.Add(NodeButton)
NodeButton.BringToFront()