0

I have a search form there is a search textbox for search by name. i want when i type any text onto the textbox then the names shows on listbox.

and when i click on any name of list box then all data related to this name fill on textbox, radiobutton, datetimepicker, picturebox etc.

i am using sql database and its for win form.

2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by vivekagrawal
0

do:

//in button click event:
listBox1.Item.Add(textBox1.Text);

and for setting the text to other controls you do:

private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            radioButton1.Text = listBox1.SelectedItem.ToString();
            textBox1.Text = listBox1.SelectedItem.ToString();
            //and so on..
        }
0

mitja i want to fill listbox by searching with database
and by this only one textbox can fill on textbox. if i want whole row of list box selected item then????????

0

it means when i want to search any name (VIVEK) then when i key press "V" then all related name related to show on listbox and when again i type "I" then all names related to VI shown on listbox and further. and when i click on any name of listbox then whole row related to that name should be fill on textbox.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.