Click here to Skip to main content
14,300,760 members
   

C#

 
QuestionHow to change screen resolution in secondary display? Pin
jrdnoland14-May-19 0:29
memberjrdnoland14-May-19 0:29 
SuggestionRe: How to change screen resolution in secondary display? Pin
CHill6014-May-19 1:11
protectorCHill6014-May-19 1:11 
QuestionString Line formating in C# Pin
anilkolla13-May-19 19:32
memberanilkolla13-May-19 19:32 
AnswerRe: String Line formating in C# Pin
OriginalGriff13-May-19 20:40
protectorOriginalGriff13-May-19 20:40 
GeneralRe: String Line formating in C# Pin
BillWoodruff13-May-19 23:32
mveBillWoodruff13-May-19 23:32 
GeneralRe: String Line formating in C# Pin
OriginalGriff13-May-19 23:38
protectorOriginalGriff13-May-19 23:38 
AnswerRe: String Line formating in C# Pin
Eddy Vluggen13-May-19 22:11
mveEddy Vluggen13-May-19 22:11 
AnswerRe: String Line formating in C# Pin
BillWoodruff13-May-19 23:28
mveBillWoodruff13-May-19 23:28 
I assume that the source of the data example shown is some form of structured tabular data. The misalignment in your example is proof of the difficulties involved.

Think about the issues in producing strings whose formats match/mirror the tabular data:

1. font: mono-spaced (simpler) vs. variable width (much more complex)

2. the variation in the length of entries for fields: you will have to do some form of analysis of all the data to figure our for each field the maximum space required.

What is your final goal here ? Print, or screen ? If screen, why not use a UI element designed for tabular data ?

Definitely review the content here to find some possibly useful code tools and resources: [^]. And, note that C# 6 has some new string interpolation features:[^]
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

Questioncould someone one know what is the error in( cmnd.ExecuteNonQuery();)at button 3 it doesnt work Pin
Member 1436661013-May-19 6:34
memberMember 1436661013-May-19 6:34 
AnswerRe: could someone one know what is the error in( cmnd.ExecuteNonQuery();)at button 3 it doesnt work Pin
Dave Kreskowiak13-May-19 7:07
mveDave Kreskowiak13-May-19 7:07 
AnswerRe: could someone one know what is the error in( cmnd.ExecuteNonQuery();)at button 3 it doesnt work Pin
Luc Pattyn13-May-19 9:31
professionalLuc Pattyn13-May-19 9:31 
AnswerRe: could someone one know what is the error in( cmnd.ExecuteNonQuery();)at button 3 it doesnt work Pin
Eddy Vluggen13-May-19 10:12
mveEddy Vluggen13-May-19 10:12 
Questioncould some Pin
Member 1436661013-May-19 6:31
memberMember 1436661013-May-19 6:31 
AnswerRe: could some Pin
Dave Kreskowiak13-May-19 7:03
mveDave Kreskowiak13-May-19 7:03 
QuestionHow to Read RPM from CANBUS data using a GUI Pin
firoz kamarudin12-May-19 22:05
memberfiroz kamarudin12-May-19 22:05 
AnswerRe: How to Read RPM from CANBUS data using a GUI Pin
phil.o13-May-19 1:02
mvephil.o13-May-19 1:02 
GeneralRe: How to Read RPM from CANBUS data using a GUI Pin
firoz kamarudin13-May-19 17:56
memberfiroz kamarudin13-May-19 17:56 
QuestionFinal Project its importent Pin
Member 1436409711-May-19 13:54
memberMember 1436409711-May-19 13:54 
AnswerRe: Final Project its importent Pin
Dave Kreskowiak11-May-19 14:23
mveDave Kreskowiak11-May-19 14:23 
AnswerRe: Final Project its importent Pin
BillWoodruff11-May-19 14:27
mveBillWoodruff11-May-19 14:27 
AnswerRe: Final Project its importent Pin
OriginalGriff11-May-19 20:06
protectorOriginalGriff11-May-19 20:06 
AnswerRe: Final Project its importent Pin
Gerry Schmitz11-May-19 23:49
mveGerry Schmitz11-May-19 23:49 
AnswerRe: Final Project its importent Pin
#realJSOP12-May-19 1:10
mve#realJSOP12-May-19 1:10 
QuestionIdeas wanted: editor for large parent-child tree structure in multiuser environment Pin
atrus271111-May-19 3:01
memberatrus271111-May-19 3:01 
AnswerRe: Ideas wanted: editor for large parent-child tree structure in multiuser environment Pin
BillWoodruff11-May-19 14:45
mveBillWoodruff11-May-19 14:45 

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.