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

Masked edit control and database (.NET)

P: n/a
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!
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
To make it simplier...
How can I bind a masked edit control with data?

ne*********@hotmail.com (Kostis) wrote in message news:<65**************************@posting.google. com>...
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!

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.