Masked edit control and database (.NET)

K

Kostis

Hello there!
I have created a windows application in VB.NET and I want to retrieve
data from an access database. I create the OleDbConnection, an
OleDbAdapter, a dataset and finally a Data Form using the Data Form
Wizard. Everything works fine.
The problem is that I want to use the masked edit control to manage
the way some fields appear, and are being stored to the database.
I insert the "Microsoft Masked Edit Control, version 6.0" (Path
"c:\windows\system32\msmask32.ocx", Library "Microsoft Masked Edit
Control 6.0 (SP3), Last Modified 5/4/2001") to my toolbox. Then I
create a new Masked Edit control to my form and a reference is
automatically been added to AxMSMask.
The only thing that is left is to bound this control to the dataset.
So I change the Data -> (DataBindings) -> Text property to
"objdsClient - Client.AFM" so that the new control shows the content
of the Client.AFM column of the objdsClient. This setting works fine
with a simple textbox.
(So far I haven't changed the format or mask property of the masked
edit control)
Then I run my application, and open the form I just created. when I
press the Load button (that loads the dataset), I can see that 3
records are returned (which is correct) but all the fields remain
blank!
Any help would be appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top