Answers for "using selected item in listbox c# to fill texbox"

C#
0

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
Posted by: Guest on November-16-2021

Code answers related to "using selected item in listbox c# to fill texbox"

C# Answers by Framework

Browse Popular Code Answers by Language