Click here to Skip to main content
14,238,047 members
   

C#

 
GeneralRe: How store all TabPage items in c# Pin
Richi38125-Apr-19 21:39
memberRichi38125-Apr-19 21:39 
AnswerRe: How store all TabPage items in c# Pin
BillWoodruff26-Apr-19 4:09
mveBillWoodruff26-Apr-19 4:09 
QuestionHow to handle PCB components layout in designing LED switching power supply? Pin
Pcbindex17-Apr-19 19:57
memberPcbindex17-Apr-19 19:57 
AnswerRe: How to handle PCB components layout in designing LED switching power supply? Pin
OriginalGriff17-Apr-19 20:05
protectorOriginalGriff17-Apr-19 20:05 
Questionlast 3 numbers Pin
_Q12_17-Apr-19 12:04
member_Q12_17-Apr-19 12:04 
AnswerRe: last 3 numbers Pin
Gerry Schmitz17-Apr-19 13:05
mveGerry Schmitz17-Apr-19 13:05 
GeneralRe: last 3 numbers Pin
_Q12_17-Apr-19 13:36
member_Q12_17-Apr-19 13:36 
AnswerRe: last 3 numbers Pin
Luc Pattyn17-Apr-19 13:11
professionalLuc Pattyn17-Apr-19 13:11 
Hi,

you can specify how a number gets formatted on output without performing any char or string manipulation yourself.

The basic mechanism consists of calling the ToString() method while providing a format pattern as well as an object of type NumberFormatInfo that holds your specific wishes. In this case it would be:

NumberFormatInfo nfi = (NumberFormatInfo)CultureInfo.InvariantCulture.NumberFormat.Clone();
nfi.NumberGroupSeparator = " ";
int yourNumber=123456789;
string yourFormattedNumber = yourNumber.ToString("#,0", nfi);


Obviously you need to create nfi only once, you can reuse it as often as you want.


Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

AnswerRe: last 3 numbers Pin
#realJSOP18-Apr-19 2:04
mve#realJSOP18-Apr-19 2:04 
AnswerRe: last 3 numbers Pin
BillWoodruff18-Apr-19 20:57
mveBillWoodruff18-Apr-19 20:57 
QuestionWCF Pin
Member 1406752317-Apr-19 4:12
memberMember 1406752317-Apr-19 4:12 
AnswerRe: WCF Pin
#realJSOP17-Apr-19 4:25
mve#realJSOP17-Apr-19 4:25 
QuestionReferencing Dynamic Control Array Data Pin
Member 1427108416-Apr-19 12:11
memberMember 1427108416-Apr-19 12:11 
AnswerRe: Referencing Dynamic Control Array Data Pin
Member 1427108416-Apr-19 15:38
memberMember 1427108416-Apr-19 15:38 
SuggestionRe: Referencing Dynamic Control Array Data Pin
Richard Deeming17-Apr-19 1:07
mveRichard Deeming17-Apr-19 1:07 
AnswerRe: Referencing Dynamic Control Array Data Pin
BillWoodruff16-Apr-19 16:29
mveBillWoodruff16-Apr-19 16:29 
AnswerRe: Referencing Dynamic Control Array Data Pin
OriginalGriff16-Apr-19 21:22
protectorOriginalGriff16-Apr-19 21:22 
QuestionJson formatting using an object in c# Pin
ATLDev15-Apr-19 11:52
memberATLDev15-Apr-19 11:52 
AnswerRe: Json formatting using an object in c# Pin
OriginalGriff15-Apr-19 21:21
protectorOriginalGriff15-Apr-19 21:21 
GeneralRe: Json formatting using an object in c# Pin
Rob Philpott16-Apr-19 6:21
memberRob Philpott16-Apr-19 6:21 
AnswerRe: Json formatting using an object in c# Pin
Richard Deeming16-Apr-19 7:47
mveRichard Deeming16-Apr-19 7:47 
GeneralRe: Json formatting using an object in c# Pin
ATLDev18-Apr-19 6:08
memberATLDev18-Apr-19 6:08 
GeneralRe: Json formatting using an object in c# Pin
Richard Deeming18-Apr-19 7:30
mveRichard Deeming18-Apr-19 7:30 
QuestionHow to fill between two spline curves with two different colors in C# Pin
Member 1332584612-Apr-19 10:01
memberMember 1332584612-Apr-19 10:01 
AnswerRe: How to fill between two spline curves with two different colors in C# Pin
Gerry Schmitz13-Apr-19 5:49
mveGerry Schmitz13-Apr-19 5:49 

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.