By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,983 Members | 1,627 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,983 IT Pros & Developers. It's quick & easy.

Onscreen keyboard with Masked Textbox

P: 20
I have a masked textbox on my form.
I have an onscreen keyboard with numbers only.

The masked format for the masked textbox is: (###) ### - ####

I want to make sure they enter the phone numbers properly, hence the mask.

What I cannot seem to figure out is why can I not send the button captions (captions are the value of the number buttons, 1 through 9) into the masked box without an error?

I get: Run Time Error '380'. Invalid property value.

Here is my command code for the number buttons, which are arrayed:

Expand|Select|Wrap|Line Numbers
  1. MaskEdBox1.Text = MaskEdBox1.Text + Command1(Index).Caption
Without my mask, of course, the numbers are sent to the textbox just fine.

How can I make it work with the mask in place? Thanks!!
Oct 13 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.