How to default the date format ?

A

Agnes

I am creating a usercontrol which is a textbox (with date format only)
I want to make sure the user input the date format into dd-mm-yyyy
How can I create such user control ???

I know how to create a "number textbox" usercontrol, but don't know about
'textbox'
Thanks a lot
From Agnes
 
C

Cor Ligthert

Hi Agnes,

When it has really to be as you tell and it is your own usercontrol I would
go for 3 small textboxes in a groupbox.

With that you can real control every value exact.

However just one of thousand ways to go I think.

Cor
 
H

Herfried K. Wagner [MVP]

* "Agnes said:
I am creating a usercontrol which is a textbox (with date format only)
I want to make sure the user input the date format into dd-mm-yyyy
How can I create such user control ???

<URL:http://www.codeproject.com/cs/miscctrl/maskedcsedit.asp>
<URL:http://www.codeproject.com/vb/net/maskedbox_control.asp>
<URL:http://www.codeproject.com/vb/net/validtext3.asp>
<URL:http://www.codeproject.com/vb/net/cpflexmaskeditbox.asp>
<URL:http://www.codeproject.com/useritems/ValidText.asp>
....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top