[C#] Split TextBox Text
#1

Hey i am lookin for a Methode to Split a textBox Text Example the Code that HateMe gives for ListBox item to TextBox

shows me the Name and the a_user_index from the Chars, but i wanna that it Shows only the a_user_index.

 

 

 

Thats the Code from HateMe :

 

private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (listBox1.SelectedIndex != -1)
{

string name = listBox1.SelectedItem.ToString();
textBox1.Text = name;

}
}

 

Here a Screen how it looks:

2



Messages In This Thread
[No subject] - by Nikolee - 09-08-2012, 10:22 AM
[No subject] - by Wizatek - 09-08-2012, 10:25 AM
[No subject] - by HateMe - 09-08-2012, 11:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)