Click here to Skip to main content
15,904,652 members
Home / Discussions / C#
   

C#

 
GeneralRe: getting the tip message for method during design time Pin
DaveyM6930-Jan-09 9:19
professionalDaveyM6930-Jan-09 9:19 
GeneralRe: getting the tip message for method during design time Pin
Najmal31-Jan-09 4:18
Najmal31-Jan-09 4:18 
Questioncomplicated string Pin
bfis10813730-Jan-09 3:18
bfis10813730-Jan-09 3:18 
AnswerRe: complicated string Pin
#realJSOP30-Jan-09 3:24
professional#realJSOP30-Jan-09 3:24 
GeneralRe: complicated string Pin
bfis10813730-Jan-09 3:36
bfis10813730-Jan-09 3:36 
GeneralRe: complicated string Pin
Ben Fair30-Jan-09 3:40
Ben Fair30-Jan-09 3:40 
GeneralRe: complicated string Pin
SeMartens30-Jan-09 3:48
SeMartens30-Jan-09 3:48 
GeneralRe: complicated string Pin
#realJSOP30-Jan-09 4:01
professional#realJSOP30-Jan-09 4:01 
Ahhh, so you need to parse the string, and then you want to make it pretty when you print by lining up columns of data...

I'm assuming that it's a console application (because making it pretty in a forms app would be much easier, and less work to boot).

You could brute-force it and use string.Format to pad each string, or you could read in the data, parse each string to find the longest name, publisher, etc., and then format with appropriate padding for each column. I think he first way would earn you a passing grade, and would take far less time, but the second way would teach you more (and be more fun besides).

Which path will you take?

My advice is to satisfy the minimum requirements by doing it the first way, but then do it the second way and if you finish it in time, hand the 2nd version in instead.


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: complicated string Pin
Najmal31-Jan-09 4:29
Najmal31-Jan-09 4:29 
Question2 dimensional array of objects Pin
dwolver30-Jan-09 3:12
dwolver30-Jan-09 3:12 
QuestionRe: 2 dimensional array of objects Pin
Eddy Vluggen30-Jan-09 3:20
professionalEddy Vluggen30-Jan-09 3:20 
AnswerRe: 2 dimensional array of objects Pin
musefan30-Jan-09 3:23
musefan30-Jan-09 3:23 
GeneralRe: 2 dimensional array of objects [modified] Pin
musefan30-Jan-09 3:25
musefan30-Jan-09 3:25 
GeneralRe: 2 dimensional array of objects Pin
dwolver30-Jan-09 3:38
dwolver30-Jan-09 3:38 
AnswerRe: 2 dimensional array of objects Pin
#realJSOP30-Jan-09 3:25
professional#realJSOP30-Jan-09 3:25 
GeneralRe: 2 dimensional array of objects Pin
dwolver30-Jan-09 3:40
dwolver30-Jan-09 3:40 
GeneralRe: 2 dimensional array of objects Pin
#realJSOP30-Jan-09 4:02
professional#realJSOP30-Jan-09 4:02 
GeneralRe: 2 dimensional array of objects Pin
Najmal31-Jan-09 4:33
Najmal31-Jan-09 4:33 
QuestionStarting Robocopy From A Service Pin
rich_wenger30-Jan-09 2:37
rich_wenger30-Jan-09 2:37 
AnswerRe: Starting Robocopy From A Service Pin
musefan30-Jan-09 2:50
musefan30-Jan-09 2:50 
GeneralRe: Starting Robocopy From A Service Pin
rich_wenger30-Jan-09 3:47
rich_wenger30-Jan-09 3:47 
GeneralRe: Starting Robocopy From A Service Pin
musefan30-Jan-09 3:54
musefan30-Jan-09 3:54 
AnswerRe: Starting Robocopy From A Service Pin
Dave Kreskowiak30-Jan-09 6:08
mveDave Kreskowiak30-Jan-09 6:08 
Questiona ? b : c? Pin
bfis10813730-Jan-09 2:24
bfis10813730-Jan-09 2:24 
AnswerRe: a ? b : c? Pin
musefan30-Jan-09 2:27
musefan30-Jan-09 2:27 

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.