Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

using selected item in listbox c# to fill texbox

            string selected = listBox1.SelectedItem.ToString();
            int id = int.Parse(selected.Split(' ')[0]); // we are using dictionary and spliting the item in listbox and as  spliting parametar we are using space
            Car<string, string, string> cars = car[id];
            textBox1.Text = id.ToString();
            textBox2.Text = cars.manufacturer;
            textBox3.Text = cars.model;
            pictureBox1.ImageLocation = cars.picture;
//by iq18but18cm
 
PREVIOUS NEXT
Tagged: #selected #item #listbox #fill #texbox
ADD COMMENT
Topic
Name
7+6 =