TextBox formatting

G

Guest

Is there an easy way to format data in a textbox control?

I have a textbox control bound to a dataset and I would like the datetime
data to be formatted as "MM/dd/yyyy" instead of the standard display format.


Thanks.
 
J

Joshua Mitts

Hi Kyle,

Check out this article...it walks you through data binding to Windows Forms
controls: http://www.akadia.com/services/dotnet_databinding.html. There are
Format and Parse events on the Form's BindingContext that will let you
format the data in the textbox and parse it back for writing to your data
source.

Joshua Mitts
(e-mail address removed)
 

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

Top