473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 3443
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: olive_fr | last post by:
Hi, It seems that the Window Style Number used in an edit control to limit the entry of numbers has disapeared in .NET. Is there a way to set it excpet using P/invoke to change the style of...
7
by: |{evin | last post by:
I'm currently working on what has turned in to something much larger that I wanted it to be. The upside is that I'm getting $$ to do it... but anywho. I currently have textboxes set up to...
1
by: metridevkk | last post by:
Hi, I need to use a Masked Edit Control in my ASPX page. In VS.Net, I added the reference to MSMask.dll for my application & also added the MaskEdBox to the Toolbox. After adding the control to...
1
by: david | last post by:
Anybody could give me hint how use this control in asp.net web form. The problem is: I try to use COM component in my web form app by using MS training kit for windows form application. I would...
1
by: larry | last post by:
hi, using the masked edit control in vb.net, I have a control named mskbanknum when i set mskbanknum.text = "125" the value "125" is not displayed in the vb.net form the debugger verify's...
0
by: Kostis | last post by:
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...
3
by: Panos | last post by:
Hi all, I can't clear a Masked edit control. I use it to input dates, so I have defined the mask as "##/##/####". I use the the well known meb.mask="" meb.text="" , but nothing happens. Does...
0
by: jin | last post by:
Hi, i sa wthe textbook said, # is a digit place holder which entry required while 9 is a digit place holder which entry optional actually what is the meaning of entry optional and entry required,...
4
by: mwcapps | last post by:
I have unformatted text in my SQL 2005 database. I'm pulling it into a masked edit text box with a (999)999-9999 mask. Unfortunately, when I attempt to save the data back it doesn't work because I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.