"Vic" <victormg (AT) cisa (DOT) com.mx> wrote
Quote:
Someone knows why if I set an AxMaskedbox.text dont display
anything in the window?
For example axmaskedbox1.text = "01/01/03"
of course with the mask = "##/##/##"
I can solve part of your problem for you.
|
Instead of the Text property, try setting the CtlText property. This will
cause your string literal to be displayed.
The unanswered part of the question is exactly how this setting is
influenced by a value in the Mask property. My experiments indicate that
anything in Mask prevents display of CtlText, beyond something simple like a
mask of ### allowing a number such as 123 to appear.
So, this works:
axMaskEdBox1.Mask = "###"
axMaskEdBox1.CtlText = 123
This does not:
axMaskEdBox1.Mask = "##/##/##"
axMaskEdBox1.CtlText = 123456
or
axMaskEdBox1.CtlText = "12/34/56"
Hopefully, someone else can take this further.
--
Peter - [MVP - Academic]