Link to home
Start Free TrialLog in
Avatar of running32
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  
Avatar of jake072
jake072
Flag of Canada image

What MaskEditBox are you using?

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
Avatar of running32
running32

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
ASKER CERTIFIED SOLUTION
Avatar of jake072
jake072
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial