What im trying to do is check which button is clicked and set the fillcolor based on that can anyone help?

Picture1.DrawWidth = Text1.Text
If Button = 1 Then Picture1.FillColor = Picture2.BackColor
If Button = 1 Then Picture1.Line -(x, y)
If Button = 2 Then Picture1.FillColor = Picture3.BackColor
If Button = 2 Then Picture1.Line -(x, y)

Thanks