Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello...
I want know,
I have a text in Richtextbox in (Windows form application) and I want split this text on (&)character and take this value and I want to divide this value by the number(any number).How I can doing this thing ,please help me.
Posted

1 solution

Try:
C#
string s = myRichTextBox.Text;
string[] parts = s.Split('&');
int value = 0;
if (int.TryParse(parts[0], out value))
    {
    value /= 6;
    }
 
Share this answer
 
Comments
T.P.M 9-May-12 9:42am    
Thank you very much!!.

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