Changing Form BackColor in VB.Net

  • Thread starter Thread starter Lumpierbritches
  • Start date Start date
L

Lumpierbritches

Thank you for your assistance in advance.

I'm trying to change the forms backcolor with a ckBox.

Michael
 
Hi,

Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles CheckBox1.CheckedChanged

If CheckBox1.Checked Then

Me.BackColor = Color.LightBlue

Else

Me.BackColor = Color.Pink

End If

End Sub



Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top