masked edit problem

bahram

Member
Joined
May 1, 2006
Messages
13
Programming Experience
1-3
i have 3 problem by masked edit in vb.net 2005


1 i save maskededit.text in database and i show this in datagrid for chang and my user can cahng it. but my user can delete masked for example my mask is 13##/##/## when this show in datagrid 1385/01/01 and my user can delete (/) and this is mask and i dont like this is deleted.please help me ?


2 how i save this text my maskededit is 13##/##/## 1385/01/01
i need save 850101 this is make in vb.net 2003 but in vb.net 2005 i dont know?


3 in delphi textbox we can chang properteis to masked and youser can not delete mask for example(/) in vb.net2005 what do i can ????




thanks my dear please help me about 3 qustions
 
The MaskedTextBox control does all your wants. Get yourself well acquainted with this control.

Next, using this in a DataGridView control which you should use in VB2005 instead of DataGrid control, this is a little more complicated (but much easier than with DG!). This article basically describes all you have to do to make yourself a DGV MaskedTextBoxColumn: "How to: Host Controls in Windows Forms DataGridView Cells" http://msdn2.microsoft.com/en-us/library/7tas5c80.aspx
 
Back
Top