-
Mask Edit Box
I am using MaskEdibBox in my form and i placed mask like 9.999
when i want to retrieve data from table in MaskEditBox vb generates error if digists quantity is different. for example, data saved is 1.2 , and also mask edit box does not display value 9
kindly tell me how i should program with numeric inputs box
-
When setting the Text property, if the PromptInclude property is True, you must specify all characters. For example, using your sample, MaskEdBox1.Text = "1.2__".
That is more trouble than it is worth so set the property to False before setting the Text value and set it back afterwards.
MaskEdBox1.PromptInclude = False
MaskEdBox1.Text = "1.2"
MaskEdBox1.PromptInclude = True