Click here to Skip to main content
15,884,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: Trying to make a converter Pin
daddy35618-Feb-14 10:48
daddy35618-Feb-14 10:48 
GeneralRe: Trying to make a converter Pin
harold aptroot18-Feb-14 22:09
harold aptroot18-Feb-14 22:09 
GeneralRe: Trying to make a converter Pin
daddy35619-Feb-14 3:38
daddy35619-Feb-14 3:38 
GeneralRe: Trying to make a converter Pin
harold aptroot19-Feb-14 4:34
harold aptroot19-Feb-14 4:34 
GeneralRe: Trying to make a converter Pin
daddy35619-Feb-14 5:35
daddy35619-Feb-14 5:35 
QuestionC# string formatting Pin
Member 1059957015-Feb-14 13:47
Member 1059957015-Feb-14 13:47 
AnswerRe: C# string formatting Pin
Mycroft Holmes15-Feb-14 17:07
professionalMycroft Holmes15-Feb-14 17:07 
AnswerRe: C# string formatting Pin
OriginalGriff15-Feb-14 23:06
mveOriginalGriff15-Feb-14 23:06 
There are a number of problems there, such as this:
C#
for (int x = 0; x < NUM_DASHES; ++x) ;
Which does nothing.
And the very wasteful way you are assembling strings: they are immutable, remember, which means that each time you add two strings, you create a new, bigger string and copy both originals into it. You should consider looking at StringBuilder if you are going to do that in future.

But...as Mycroft said, a monospaced font and manual padding will work.

I just wouldn't do it.
Instead, I would use a DataGridView to display the data - it's a lot prettier, a lot more flexible, a lot friendlier for the user, and once you are used to it a lot easier to use.
Try it! Drag one onto your form, and give it 5 columns, with appropriate headings.
Then just add rows - MSDN will help you with an example.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

AnswerRe: C# string formatting Pin
V.16-Feb-14 21:05
professionalV.16-Feb-14 21:05 
QuestionClick Event On DataGridview Cell Pin
Soahib jamil15-Feb-14 1:36
Soahib jamil15-Feb-14 1:36 
AnswerRe: Click Event On DataGridview Cell Pin
Richard MacCutchan15-Feb-14 1:41
mveRichard MacCutchan15-Feb-14 1:41 
AnswerRe: Click Event On DataGridview Cell Pin
Peter Leow15-Feb-14 1:50
professionalPeter Leow15-Feb-14 1:50 
QuestionHow to deserialize the hexadecimal value ? Pin
rkarthickbeece14-Feb-14 19:26
rkarthickbeece14-Feb-14 19:26 
AnswerRe: How to deserialize the hexadecimal value ? Pin
Richard Andrew x6414-Feb-14 19:34
professionalRichard Andrew x6414-Feb-14 19:34 
AnswerRe: How to deserialize the hexadecimal value ? Pin
BillWoodruff14-Feb-14 22:27
professionalBillWoodruff14-Feb-14 22:27 
AnswerRe: How to deserialize the hexadecimal value ? Pin
PIEBALDconsult15-Feb-14 3:29
mvePIEBALDconsult15-Feb-14 3:29 
QuestionC and C# similarities!!! Need Help....Beginner!!! Pin
Member 1058315014-Feb-14 12:09
Member 1058315014-Feb-14 12:09 
AnswerRe: C and C# similarities!!! Need Help....Beginner!!! Pin
PIEBALDconsult14-Feb-14 13:02
mvePIEBALDconsult14-Feb-14 13:02 
GeneralRe: C and C# similarities!!! Need Help....Beginner!!! Pin
Member 1058315014-Feb-14 13:31
Member 1058315014-Feb-14 13:31 
GeneralRe: C and C# similarities!!! Need Help....Beginner!!! Pin
OriginalGriff14-Feb-14 22:50
mveOriginalGriff14-Feb-14 22:50 
AnswerRe: C and C# similarities!!! Need Help....Beginner!!! Pin
Peter Leow14-Feb-14 18:23
professionalPeter Leow14-Feb-14 18:23 
AnswerRe: C and C# similarities!!! Need Help....Beginner!!! Pin
Richard Andrew x6414-Feb-14 19:31
professionalRichard Andrew x6414-Feb-14 19:31 
AnswerRe: C and C# similarities!!! Need Help....Beginner!!! Pin
Richard MacCutchan14-Feb-14 22:46
mveRichard MacCutchan14-Feb-14 22:46 
AnswerRe: C and C# similarities!!! Need Help....Beginner!!! Pin
OriginalGriff14-Feb-14 22:56
mveOriginalGriff14-Feb-14 22:56 
QuestionCant Open SQL connection Pin
mcgurdan14-Feb-14 5:51
mcgurdan14-Feb-14 5:51 

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.