all groups > vb.net controls > april 2005 >
You're in the

vb.net controls

group:

.NET - MaskedEdit control


.NET - MaskedEdit control Bill S.
4/25/2005 2:37:32 AM
vb.net controls: Hi,

I'm having much difficulty binding a MaskedEdit control. I can't get it to
format dates and times properly, and any values that are entered are
immediately replaced by the previous value. Futhermore, if I set the
PromptInclude property to 'True', I can't tab pass the control once it
recieves focus. As a matter of fact I can't even click on another control to
change focus.

Thanks for any help

edDate.Mask = "##/##/##"
'edDate.PromptInclude = True 'Doesn't matter if I set it here, or
after the bind.

Ctrl.DataBindings.Add("Text", CType(DP.bmRequests.Current, DataRowView),
Field)

edDate.PromptInclude = True

Re: .NET - MaskedEdit control Ken Tucker [MVP]
4/25/2005 6:51:08 AM
Hi,

Here is a link on how to format bound data for display. Maybe
this will help.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsbindingclassformattopic.asp

Ken
----------------------
[quoted text, click to view]
Hi,

I'm having much difficulty binding a MaskedEdit control. I can't get it to
format dates and times properly, and any values that are entered are
immediately replaced by the previous value. Futhermore, if I set the
PromptInclude property to 'True', I can't tab pass the control once it
recieves focus. As a matter of fact I can't even click on another control to
change focus.

Thanks for any help

edDate.Mask = "##/##/##"
'edDate.PromptInclude = True 'Doesn't matter if I set it here, or
after the bind.

Ctrl.DataBindings.Add("Text", CType(DP.bmRequests.Current, DataRowView),
Field)

edDate.PromptInclude = True


AddThis Social Bookmark Button