Declare a hidden variable in the form to store the current background colour of the form. Based on validation update the value of colour in the hidden variable. That's how you will not loose the background value. Vijay
SCJP, SCJD, SCWCD1.4, IBM486, IBM484, IBM 483, IBM 287, IBM141, IBM Certified Enterprise Developer - WebSphere Studio, V5.0
Author of IBM 287 Simulator Exam
"Yani Inay", Nice try! Except that your new name still doesn't match the JavaRanch naming policy. In particular:
Obviously fictitious names, or improperly formatted names may be locked out
The naming policy was a decision made by Paul Wheaton (Javaranch creator). He says:
I want to maintain a professional exchange on JavaRanch so that corporate america won't feel embarassed to find employees spending time here.
Basically this means we try not to be militant about the naming policy, but there is a standard that has been set that we have decided to follow and we require you to register with a valid name. thanks for your co-operation. Dave ps Sorry about the hard-line attitude , it's worth registering and sticking around tho, I promise!