|
-
Jul 29th, 2002, 05:47 AM
#1
Thread Starter
Addicted Member
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.
-
Jul 29th, 2002, 11:03 PM
#2
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|