09-08-2012, 10:22 AM
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

