CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2003
    Posts
    6

    Maskedbox backcolor problems

    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.

  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868
    Which masked edit control are you using?

  3. #3
    Join Date
    May 2003
    Posts
    6
    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.

  4. #4
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured