Onscreen keyboard with Masked Textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michels287
    New Member
    • Mar 2008
    • 20

    #1

    Onscreen keyboard with Masked Textbox

    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:

    Code:
    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!!
Working...