MaskEDbox help

Posted on 1998-04-15
Last Modified: 2008-02-20
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
Question by:EddieAng
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 1461282
I'm sorry, but I'm not understanding your question.
Please be more specific.

Accepted Solution

bin_huwairib earned 0 total points
ID: 1461283
Yes EddieAng you can display the value on MaskEDbox.

MaskEdBox1 = 123

Author Comment

ID: 1461284
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


Expert Comment

ID: 1461285
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_

Author Comment

ID: 1461286
yes it is worked, thank everyone !

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adding to a VBA? 6 90
Copy a row 12 75
SLMGR Switches Are Not Working On KMS Host 3 169
How to hault or freeze parent form when a 2d form is open in vb6 3 46
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question