public int GetNumberOfLink() { string[] links = rtb.Text.Split(' '); //Splits the text in your rtb when there's a space, and store every spilted element into a string array. return links.Count(); //return the number of string in the array. }
public void SomeMethods() { //some code int nbOfLinks = GetNumberOfLink(); //some code }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)