I am trying to make a cmdbutton click event that will look at txtExampleBG.BackColor & lblExampleFont.ForeColor and take their values and apply it to txtDialog.ForeColor and txtDialog.BackColor.

I tried this but it was a flop:

Code:
'Set the Background Color
txtExampleBG.BackColor = txtDialog.Backcolor

'Set the Font Color
lblExampleFont.ForeColor = txtDialog.ForeColor
How can I code this?