Click here to Skip to main content
16,018,938 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi i have a label control with some text. if i select the text . it is getting selected with whitespace at the end. i want to avoid that. i want to select text only with no white space at the end.

please help
Posted
Comments
Subinal 22-Mar-12 6:14am    
Why is there a whitespace at the end? Can't you trim and populate the label?

Use Trim Function.
 
Share this answer
 
Comments
Shahin Khorshidnia 23-Mar-12 7:14am    
My +5
Jαved 26-Mar-12 8:25am    
Thanks Shahin.
see this

System.Trim[^]
 
Share this answer
 
v3

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