running32
asked on
Bind a Mask Edit box
I have a form with a mask edit box on it for the ssn. I want to bind through VS to the dataset the SSN box. My problem is when I bind the SSN using the ctltxt the dataset will not load and all boxes are blank.
What is the trick to getting the information to load into a mask edit box.
Thanks
What is the trick to getting the information to load into a mask edit box.
Thanks
ASKER
Hi Jake,
I am using AxMaskEdBox and as long as I test to see if value exisings in ssn, place it in a text box and then do
If TextBox14.Text <> "" Then
AxMaskEdBox1.CtlText = TextBox14.Text
End If
There must be an eaiser way to do this?
I do nto have a settext option.
Thanks
I am using AxMaskEdBox and as long as I test to see if value exisings in ssn, place it in a text box and then do
If TextBox14.Text <> "" Then
AxMaskEdBox1.CtlText = TextBox14.Text
End If
There must be an eaiser way to do this?
I do nto have a settext option.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I found that I had to use .SetText to properly load text into a Masked Edit Box, rather than simply .Text
You might try setting your DataBindings to SetText, rather than Text; that's what I did for the MTB that I used.
Hope that helps,
Jake