By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,838 Members | 1,626 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,838 IT Pros & Developers. It's quick & easy.

Formatting a textbox with data from a database

P: n/a
I fill a windows form with data from a database(access)
txtAODato.DataBindings.Add("Text", objDataView, "AODato")

This is a date-field. How do I format it toget a short date (dd.mm.yy).

regards

reidarT
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

Add a handler to the textbox binding.format event

http://msdn.microsoft.com/library/de...ormattopic.asp

Ken
--------------------
"reidarT" <re****@eivon.no> wrote in message
news:Oe**************@TK2MSFTNGP14.phx.gbl...
I fill a windows form with data from a database(access)
txtAODato.DataBindings.Add("Text", objDataView, "AODato")

This is a date-field. How do I format it toget a short date (dd.mm.yy).

regards

reidarT

Nov 21 '05 #2

P: n/a
Hi,

You can format it in the binding.format event.

http://msdn.microsoft.com/library/de...ormattopic.asp

Ken
-------------------------

"reidarT" wrote:
I fill a windows form with data from a database(access)
txtAODato.DataBindings.Add("Text", objDataView, "AODato")

This is a date-field. How do I format it toget a short date (dd.mm.yy).

regards

reidarT

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.