473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Formatting a textbox with data from a database

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
2 1290
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rob Meade | last post by:
Hi all, Ok - this leads on from speaking to a couple here and in the SQL server group... I've an application which allows the user to type in their text into a form, they add 'happy' tags...
4
by: cefrancke | last post by:
How does Stephen Lebans make the datasheet row color change by clicking a row's check box field? I cant find any code associated with the form, and I cant tell if you have created a class on the...
3
by: vonclausowitz | last post by:
Hi Everyone, Is it possible to create some code which can automatically update my forms formatting? I have a small database with a form which is periodically changed. When the db is returned to...
7
by: BBFrost | last post by:
I'm receiving decimal values from database queries and placing them on a report page. The users want to see the following .... Db Value Display Value 123.3400 123.34...
1
by: Duppypog | last post by:
I want the contents of a textbox to be ALL CAPS when added to the database. How do I do that? And on the flip side - if I have existing data, what's the data formatting expression for ALL CAPS...
4
by: Peter Newman | last post by:
the data input app im writing has some 30 + input fields and i want to be able to format them. I know i can use the .validate on each textbox and format the 'string' however this require loads...
18
by: obrienkev | last post by:
Hi, I have a multiline TextBox. Text contained in the TextBox will be stored in a SQL Server Database. How do I format the textBox correctly for database entry? e.g. How do I ensure that new...
4
by: lupo666 | last post by:
Hi everybody, this time I have three problems driving me nuts :-((( (1) I have a report with 20 or so Yes/No "squares". Is there a way to either hide/show the "square" or change the yes/no...
12
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I want to plant an Easter Egg in our software. We have a TextBox that is multiline and used to display all sorts of messages on the screen for our operators based on database queries and such. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.