Results 1 to 2 of 2

Thread: Masked data entry.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Auckland, NZ
    Posts
    182

    Masked data entry.

    I need to have a mask for entry numbers in format: ##-####-##. Which control can be used to implement this in VB.Net. Or may be it can be done in a text box? It is necessary to display the mask when the control receives focus, and automatically move cursor to the next group of digits: for example
    33-0___-__. I tried to use a Mask Edit control, but in VB.Net I was unable to change its background colour property at runtime.

  2. #2
    Lively Member Dr_Evil's Avatar
    Join Date
    Mar 2000
    Location
    Columbus, OH
    Posts
    105
    I don't know of any other contol that ships with .NET that can achieve this. I use the Masked edit control in several apps but have not once tried to change the BackColor property. I'm having the same problem as you when attempting to change it at runtime. Even when I set it at design time it continues to display white when running the app. The ironic thing is that Microsoft shows code to do this in the Masked Edit Contorol example. Anyone have any ideas on this?
    Dr_Evil
    Senior Programmer
    VS6 EE
    VS.NET EA

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