Jay1b Posted September 16, 2003 Posted September 16, 2003 I have warning come up that changes the color of the form to red, when the user resolves the problem - i want to change the color back to what it was previously. ........... dim stroldColor as string ........... if strError = true then strOldColor = me.backcolor me.backcolor = color.red else me.backcolor = strOldColor endif My problem is i dont the code to find out what the backcolor actually was to begin with, as what i have there throws up a type mismatch error. I dont want to just set the color back to gray, as the user may have personalised colors on there computer. Can anybody point me in the right direction please? Quote
*Experts* mutant Posted September 16, 2003 *Experts* Posted September 16, 2003 (edited) Wouldnt it be better to put the color into the Color object instead of a string? Edited September 16, 2003 by mutant Quote
Jay1b Posted September 16, 2003 Author Posted September 16, 2003 Done it and works perfectly! Thank you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.