Click here to Skip to main content
16,013,918 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGrid, Generic GDI+ errors, and a Big Red X Pin
inyoursadachine20-May-04 5:41
inyoursadachine20-May-04 5:41 
GeneralRe: DataGrid, Generic GDI+ errors, and a Big Red X Pin
Heath Stewart20-May-04 5:47
protectorHeath Stewart20-May-04 5:47 
GeneralRe: DataGrid, Generic GDI+ errors, and a Big Red X Pin
ABean19-May-04 15:11
ABean19-May-04 15:11 
GeneralC#'s sprintf Pin
ABean19-May-04 13:19
ABean19-May-04 13:19 
GeneralRe: C#'s sprintf Pin
Heath Stewart19-May-04 13:24
protectorHeath Stewart19-May-04 13:24 
GeneralRe: C#'s sprintf Pin
ABean19-May-04 13:26
ABean19-May-04 13:26 
GeneralRe: C#'s sprintf Pin
ABean19-May-04 13:25
ABean19-May-04 13:25 
GeneralRe: C#'s sprintf Pin
Heath Stewart19-May-04 13:32
protectorHeath Stewart19-May-04 13:32 
You still might want to look at what I wrote. Calling the overloaded ToString to format types isn't always the best way.

If you look at my article about custom format providers, you might notice why. When using String.Format (or similar methods), you can localize your application much easier because you can localize the entire format string and not have to worry about parameter order since you specify the parameter indexes in the format string. If all you're doing is printing a Type (like some primitive), then using ToString is fine. You should also keep in mind that the overridden ToString uses a well-defined output (typically the same as the "G" format specifier, although this is only a guidelines).

I also have several links in my article to more information in .NET Framework SDK. No, I'm not trying to market my article, I just don't feel like copying and pasting all the links. Smile | :) There's just a lot more power in string formatting within .NET and it's worth understanding.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: C#'s sprintf Pin
ABean19-May-04 13:46
ABean19-May-04 13:46 
GeneralMysterious behaviour (freezing) Pin
GuntherR19-May-04 12:40
GuntherR19-May-04 12:40 
GeneralRe: Mysterious behaviour (freezing) Pin
je_gonzalez19-May-04 18:02
je_gonzalez19-May-04 18:02 
GeneralRe: Mysterious behaviour (freezing) Pin
GuntherR20-May-04 3:43
GuntherR20-May-04 3:43 
GeneralDllImport specification Pin
Colin Angus Mackay19-May-04 11:59
Colin Angus Mackay19-May-04 11:59 
GeneralRe: DllImport specification Pin
David M. Kean19-May-04 12:41
David M. Kean19-May-04 12:41 
GeneralRe: DllImport specification Pin
Heath Stewart19-May-04 13:25
protectorHeath Stewart19-May-04 13:25 
GeneralRe: DllImport specification Pin
David M. Kean19-May-04 16:11
David M. Kean19-May-04 16:11 
GeneralRe: DllImport specification Pin
Colin Angus Mackay21-May-04 9:13
Colin Angus Mackay21-May-04 9:13 
GeneralDesigner error Pin
Steve Schaneville19-May-04 11:47
professionalSteve Schaneville19-May-04 11:47 
GeneralRe: Designer error Pin
Heath Stewart19-May-04 13:36
protectorHeath Stewart19-May-04 13:36 
GeneralRe: Designer error Pin
Steve Schaneville19-May-04 17:08
professionalSteve Schaneville19-May-04 17:08 
GeneralRe: Designer error Pin
Heath Stewart19-May-04 18:40
protectorHeath Stewart19-May-04 18:40 
GeneralRe: Designer error Pin
Steve Schaneville19-May-04 18:55
professionalSteve Schaneville19-May-04 18:55 
GeneralRe: Designer error Pin
Heath Stewart19-May-04 19:05
protectorHeath Stewart19-May-04 19:05 
GeneralRe: Designer error Pin
Steve Schaneville19-May-04 19:16
professionalSteve Schaneville19-May-04 19:16 
GeneralHelp with CR 9 for C#.NET Pin
frank2119-May-04 10:52
frank2119-May-04 10:52 

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.