This is just a sample code for people who will try to do something similar.
Is an example of the code:
if (listBox1.SelectedIndex >= 0)
{
string strok = listBox1.SelectedItem.ToString();
string name = strok.Split(' ')[0];
var selgrah = name.ToLower();
textBox1.Text = selgrah;
}
New contributor
user25391876 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.