MaskEDbox help

dear sir,

l just know how to use the MaskEDbox to read the value,but is it possible to give and display the value on MaskEDbox control ?consider following example, 123 will be display on textbox control, what about MaskEDbox ?

text1 = 123

from: Eddie
godace@rocketmail.com
EddieAngAsked:
Who is Participating?
 
bin_huwairibConnect With a Mentor Commented:
Yes EddieAng you can display the value on MaskEDbox.

Example:
MaskEdBox1 = 123
0
 
clifABBCommented:
I'm sorry, but I'm not understanding your question.
Please be more specific.
0
 
EddieAngAuthor Commented:
Bin huwairib,

but if l setted the mask = "##-##" then it would be error, is it not support the mask on output ?consider the following code.

'first of all, l setted the mask ="###-###"
'then give the value to display

maskedbox1=123456
0
 
clifABBCommented:
OK, now I understand.

Set the property PromptInclude = False

You can then assign values using the text property:

MaskEdBox1.Mask = "### ###"
MaskEdBox1.PromptInclude = False
MaskEdBox1.Text = 12345

Will Produce the following results:
123 45_
0
 
EddieAngAuthor Commented:
yes it is worked, thank everyone !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.