Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to convert int to label1.text
Posted
Comments
Er Daljeet Singh 23-Apr-14 7:03am    
its simple call .ToString() function
like:
int a=0;
label.Text=a.ToString();
Member 10769132 23-Apr-14 7:09am    
thx
Herman<T>.Instance 23-Apr-14 7:05am    
could you teel a bit more? Just int.ToString() or do you need globalization ?
Member 10769132 23-Apr-14 7:09am    
i wrote tic tac toe and want to make scores in it, so there is 2 int xSores and oScores so i want to write their values on label1.text
Er Daljeet Singh 23-Apr-14 7:14am    
no we don't need globalization.
ToString is inbuild function in C#
just call it as it is.

yes

try below code

C#
int a = 25;
string abc = a.Tostring();
 
Share this answer
 
Any effort?

label.text = intValue.ToString()


http://msdn.microsoft.com/en-us/library/6t7dwaa5.aspx[^]
 
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