[php]
Me.BackColor = Color.red
[/php]
Hey guys,
I'm trying to change the form color in the coding. When I use thecommand it has an error telling me that I need to use theCode:frmMain.Backcolor.ColorRedcommand. 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?Code:Me.
[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
Last edited by NextGen1; 03-08-2010 at 10:22 PM.
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
[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
zmansquared (03-08-2010)
It works. you rock once again. LOL
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
Not a problem