Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
1st i was using beging mr,mrs, and one text box that text box enter a name


i want mr.eliyas

how to make it please help me...
Posted

Hi,

You can Google it the same, you may found 1000's of links out of this, without tried out by your self asking others help that won't be helpful to your future.

This is for your reference Concatenate two strings in C#[^]
 
Share this answer
 
To concatenate two or more strings just do
C#
string concatenated = string.Concat(string1, string2);

or
C#
string concatenated = string1 + string2;


in your case
C#
string concatenated = "Mr. "+ txbName.Text;
 
Share this answer
 
v3
Comments
Philippe Mori 21-Sep-15 12:13pm    
There is also StringBuilder class that should be used when there are multiple string to concatenate.
This is so ridiculously simple it's almost funny. This question tells me you have zero programming experience. You REALLY need to pickup beginners books on programming in general. You might want to also Google for "C# Book 0" by Charles Petzold. Though, I don't know how much that book is going to help you if you really don't have any experience.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900