PC Review


Reply
Thread Tools Rate Thread

Dateformat on databound textboxes?

 
 
Graham Blandford
Guest
Posts: n/a
 
      8th Jul 2004
Hi all,

Can anyone tell me how I go about setting a custom date format (or any other
format for that matter) to a textbox that has a databinding?

In VB6 I would do something like 'set text1.format = myformat', but that
isn;t a format property in VB.NET.

Any help would be gratefully received.

Thanks,
Graham




 
Reply With Quote
 
 
 
 
William Ryan eMVP
Guest
Posts: n/a
 
      8th Jul 2004
You can use Format directly on a value, but if I understand your question
correctly, you'll want to add a handler for the .Format and .Parse events.
This explains it pretty well but let me know if you have any problems.
http://msdn.microsoft.com/library/de...ntexttopic.asp

--
W.G. Ryan MVP Windows - Embedded

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"Graham Blandford" <(E-Mail Removed)> wrote in message
news:Ux1Hc.40371$(E-Mail Removed)...
> Hi all,
>
> Can anyone tell me how I go about setting a custom date format (or any

other
> format for that matter) to a textbox that has a databinding?
>
> In VB6 I would do something like 'set text1.format = myformat', but that
> isn;t a format property in VB.NET.
>
> Any help would be gratefully received.
>
> Thanks,
> Graham
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Databound textboxes kitemad69@gmail.com Microsoft C# .NET 1 12th Nov 2008 03:50 PM
determine if multiple databound textboxes have changed? Kyote Microsoft VB .NET 2 12th May 2007 04:18 PM
Updating databound textboxes immediately after a database change???? Jon S via DotNetMonster.com Microsoft ADO .NET 2 15th Jul 2005 03:36 PM
Updating databound textboxes immediately after a database change???? Jon S via DotNetMonster.com Microsoft C# .NET 2 15th Jul 2005 03:33 PM
How to update databound textboxes in parent child datarelation Coco Microsoft VB .NET 0 22nd Nov 2004 10:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:50 AM.