[Help]Form Background Color[Solved]
Hey guys,
I'm trying to change the form color in the coding. When I use the
Code:
frmMain.Backcolor.ColorRed
command it has an error telling me that I need to use the
command. When I use that, it says it cannot instance itself in the code. Is there a way I can do this or should I just put a panel covering the form and recolor that?
[php]
Me.BackColor = Color.red
[/php]
Also quite helpful
Edit: how would you create it so that A. it would read a color diaglor box then change the background or B. when user types "blue" into textbox 3 it changes the back ground.
I like A better, any ideas nextgen or anyone
[php]
Protected Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim Bcolor As New ColorDialog()
Bcolor.ShowDialog()
me.BackColor = Bcolor.Color
End Sub
[/php]
Hope this helps
Added to UI snippets in Snippets Vault
It works. you rock once again. LOL