Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
QuestionHow to add a new method that has both external and internal name into a ActiveX? Pin
lchuang3-Feb-04 12:28
susslchuang3-Feb-04 12:28 
AnswerRe: How to add a new method that has both external and internal name into a ActiveX? Pin
Heath Stewart3-Feb-04 20:11
protectorHeath Stewart3-Feb-04 20:11 
QuestionFlash swfs in c#? Pin
visiontec3-Feb-04 12:03
visiontec3-Feb-04 12:03 
AnswerRe: Flash swfs in c#? Pin
Meysam Mahfouzi3-Feb-04 17:07
Meysam Mahfouzi3-Feb-04 17:07 
GeneralRe: Flash swfs in c#? Pin
krishna_goluguri8-Jul-10 0:16
krishna_goluguri8-Jul-10 0:16 
Questiondate format converter? Pin
visiontec3-Feb-04 11:58
visiontec3-Feb-04 11:58 
AnswerRe: date format converter? Pin
Dmitriy Kostovetskiy3-Feb-04 15:59
Dmitriy Kostovetskiy3-Feb-04 15:59 
AnswerRe: date format converter? Pin
Heath Stewart3-Feb-04 20:07
protectorHeath Stewart3-Feb-04 20:07 
A better way is to use an IFormatProvider for the British CultureInfo. For example, String.Format can take an IFormatProvider as the first parameter. This could be the CultureInfo.NumberFormat for the CultureInfo for the English (Britain) culture. By default, such methods uses the Thread.CurrentCulture but as I've mentioned you can override this behavior by passing an IFormatProvider. This is the correct way, instead of assuming and managing custom format specifiers like the previous post mentioned.

For more information about localization and culture-specific formatting, see Developing World-Read Applications[^] in the .NET Framework SDK. With regard to your question, see Formatting Date and Time for a Specific Culture[^] under the previous topic.

 

Microsoft MVP, Visual C#
My Articles
GeneralHide Start Button Pin
johnstacey3-Feb-04 11:53
johnstacey3-Feb-04 11:53 
GeneralRe: Hide Start Button Pin
Heath Stewart3-Feb-04 19:58
protectorHeath Stewart3-Feb-04 19:58 
GeneralRe: Hide Start Button Pin
johnstacey4-Feb-04 4:59
johnstacey4-Feb-04 4:59 
GeneralRe: Hide Start Button Pin
Heath Stewart4-Feb-04 5:04
protectorHeath Stewart4-Feb-04 5:04 
Questionstatus bar from child forms? Pin
visiontec3-Feb-04 11:44
visiontec3-Feb-04 11:44 
AnswerRe: status bar from child forms? Pin
Heath Stewart3-Feb-04 20:02
protectorHeath Stewart3-Feb-04 20:02 
GeneralC# Pipes Pin
Anonymous3-Feb-04 9:42
Anonymous3-Feb-04 9:42 
GeneralRe: C# Pipes Pin
occcy4-Feb-04 0:18
occcy4-Feb-04 0:18 
GeneralRe: C# Pipes Pin
ronboy4-Feb-04 3:32
ronboy4-Feb-04 3:32 
GeneralRe: C# Pipes Pin
ronboy5-Feb-04 2:27
ronboy5-Feb-04 2:27 
GeneralEncrypting data not files... Pin
Manster3-Feb-04 6:07
Manster3-Feb-04 6:07 
GeneralRe: Encrypting data not files... Pin
Heath Stewart3-Feb-04 6:13
protectorHeath Stewart3-Feb-04 6:13 
QuestionNet framework needed?? Pin
Anonymous3-Feb-04 5:46
Anonymous3-Feb-04 5:46 
AnswerRe: Net framework needed?? Pin
Heath Stewart3-Feb-04 6:06
protectorHeath Stewart3-Feb-04 6:06 
AnswerRe: Net framework needed?? Pin
Judah Gabriel Himango3-Feb-04 6:08
sponsorJudah Gabriel Himango3-Feb-04 6:08 
GeneralRe: Net framework needed?? Pin
Anonymous3-Feb-04 6:43
Anonymous3-Feb-04 6:43 
GeneralRe: Net framework needed?? Pin
Heath Stewart3-Feb-04 8:55
protectorHeath Stewart3-Feb-04 8:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.