string st=this.textBox1.Text;
int space=0,i;
for (i = 0; i <= st.Length - 1; i++)
{
if (st[i] == ' ')
space++;
if (space == 3)
break;
}
this.label1.Text = this.textBox1.Text.Substring(0, i);
string st=this.textBox1.Text;
int space=0,i;
for (i = 0; i <= st.Length - 1; i++)
{
if (st[i] == ' ')
space++;
if (space == 3)
break;
}
this.label1.Text = this.textBox1.Text.Substring(0, i);