Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...