Click here to Skip to main content
15,913,275 members
Home / Discussions / C#
   

C#

 
GeneralRe: Graphics Object Using text box for x & y axis. Pin
OriginalGriff10-Jul-10 21:59
mveOriginalGriff10-Jul-10 21:59 
GeneralRe: Graphics Object Using text box for x & y axis. Pin
OriginalGriff10-Jul-10 23:35
mveOriginalGriff10-Jul-10 23:35 
GeneralRe: Graphics Object Using text box for x & y axis. Pin
Luc Pattyn11-Jul-10 6:04
sitebuilderLuc Pattyn11-Jul-10 6:04 
AnswerRe: Graphics Object Using text box for x & y axis. Pin
Roger Wright10-Jul-10 4:59
professionalRoger Wright10-Jul-10 4:59 
AnswerRe: Graphics Object Using text box for x & y axis. Pin
Luc Pattyn10-Jul-10 8:40
sitebuilderLuc Pattyn10-Jul-10 8:40 
Questionconcatenation of multiple value [modified] Pin
varsh1210-Jul-10 1:18
varsh1210-Jul-10 1:18 
AnswerRe: concatenation of multiple value Pin
Luc Pattyn10-Jul-10 1:24
sitebuilderLuc Pattyn10-Jul-10 1:24 
AnswerRe: concatenation of multiple value Pin
OriginalGriff10-Jul-10 1:56
mveOriginalGriff10-Jul-10 1:56 
Try:
string result = "welcome" + "to" + "hello" + "world";
string resultWithSpaces = string.Format("{0} {1} {2} {3}", "welcome", "to", "hello", "world");

Each literal string "whatever" could be a variable string ion either case:
string strWelcome = "welcome";
string strTo = "to";
string strHello = "hello";
string strWorld = "world";
string result = strWelcome + strTo + strHello + strWorld;
string resultWithSpaces = string.Format("{0} {1} {2} {3}", strWelcome, strTo, strHello, strWorld);

If you need them in a loop:
string[] text = {"welcome", "to", "hello", "world"};
string result = "";
string resultWithSpaces = "";
foreach (string s in text)
   {
   result += s;
   resultWithSpaces += s + " ";
   }
The advanced stuff is to use a StringBuilder, but that can wait until you are certain of the basics!
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.

GeneralRe: concatenation of multiple value Pin
DaveyM6910-Jul-10 2:04
professionalDaveyM6910-Jul-10 2:04 
GeneralRe: concatenation of multiple value Pin
OriginalGriff10-Jul-10 2:07
mveOriginalGriff10-Jul-10 2:07 
AnswerRe: concatenation of multiple value Pin
DaveyM6910-Jul-10 2:03
professionalDaveyM6910-Jul-10 2:03 
AnswerRe: concatenation of multiple value Pin
PIEBALDconsult10-Jul-10 3:56
mvePIEBALDconsult10-Jul-10 3:56 
AnswerRe: concatenation of multiple value Pin
Abhinav S10-Jul-10 5:17
Abhinav S10-Jul-10 5:17 
QuestionHow to mearge 2 column in dagagridview in C# application?? [modified] Pin
Sunil G9-Jul-10 20:53
Sunil G9-Jul-10 20:53 
AnswerRe: How to set Image in particular cell in DataGridView in C# Pin
Abhinav S9-Jul-10 21:01
Abhinav S9-Jul-10 21:01 
GeneralRe: How to set Image in particular cell in DataGridView in C# Pin
Sunil G9-Jul-10 21:18
Sunil G9-Jul-10 21:18 
AnswerRe: How to mearge 2 column in dagagridview in C# application?? Pin
Peace ON9-Jul-10 21:20
Peace ON9-Jul-10 21:20 
GeneralRe: How to mearge 2 column in dagagridview in C# application?? Pin
Sunil G9-Jul-10 21:27
Sunil G9-Jul-10 21:27 
QuestionStore /Retrieve Text in file Pin
annmarypaul9-Jul-10 11:51
annmarypaul9-Jul-10 11:51 
AnswerRe: Store /Retrieve Text in file Pin
PIEBALDconsult9-Jul-10 12:47
mvePIEBALDconsult9-Jul-10 12:47 
AnswerRe: Store /Retrieve Text in file Pin
Peace ON9-Jul-10 19:16
Peace ON9-Jul-10 19:16 
AnswerRe: Store /Retrieve Text in file Pin
Abhinav S9-Jul-10 19:51
Abhinav S9-Jul-10 19:51 
Questionhttpwebrequest getResponse( ) freezes my program Pin
jasonneverland9-Jul-10 5:14
jasonneverland9-Jul-10 5:14 
AnswerRe: httpwebrequest getResponse( ) freezes my program Pin
Ennis Ray Lynch, Jr.9-Jul-10 8:31
Ennis Ray Lynch, Jr.9-Jul-10 8:31 
GeneralRe: httpwebrequest getResponse( ) freezes my program Pin
Luc Pattyn9-Jul-10 9:54
sitebuilderLuc Pattyn9-Jul-10 9:54 

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.