keyvan

Member Since: Tuesday, December 05, 2006 (5 years, 5 months ago)
Last Seen: 5 months, 28 days ago Who else is online?
Karma Score: 4086
Location: San Antonio, TX
Website: http://www.keyvan.tv
Blog: http://www.keyvan.ms  

Friends With:

Friends By:

Shoutbox

sukhjinder82sukhjinder82(0) said (3 years, 10 months ago):
can anyone solve my problem how to remove _ from string or remove all the character after _
i m using this coding now
int i, j;
i = 0;
j = 2;

// string s = textBox1.Text;

string s = "03_08";

while (i < s.Length )
{

if (s[i] == '_')
{
while (s[i] == '_')
{
s = s.Remove(2, i);





}

}
else
{
i = i + 1;

}
textBox2.Text = s.ToString();

Kick Spy