Click to See Complete Forum and Search --> : Maskedbox backcolor problems


CookieMonster24
May 6th, 2003, 02:53 AM
I'm trying to change the backcolor of a maskedbox when a button is pressed, but i'm having problems. what i have right now is a form, a maskedbox, and a button. I was keeping things simple to see if it worked. My mask is "##/##/####". When the button is pressed i have code that looks like this:

maskedboxName.backcolor = System.Drawing.Color.Aqua

however, nothing happens. i even tried changing the forecolor and still nothing. changing the colors to textboxes are not a problem. Any suggestions?

I'm using visual studio .net 2002 if that helps.

DSJ
May 6th, 2003, 10:22 AM
Which masked edit control are you using?

CookieMonster24
May 6th, 2003, 12:49 PM
I'm not sure what you're asking for. I'm using vb.net and as far as i can see there's only one MaskedEdit control.

DSJ
May 7th, 2003, 08:22 AM
By default there isn't a masked edit in the toolbox and the only one I can find to use is the old COM one that comes with VB 6. Is that what your using?