468,317 Members | 1,514 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,317 developers. It's quick & easy.

Masked edit control and database (.NET)

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
1 3175
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.

Similar topics

7 posts views Thread by |{evin | last post: by
1 post views Thread by metridevkk | last post: by
1 post views Thread by larry | last post: by
reply views Thread by jin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.