Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to create a listBox below a textBox,when input in the textbox ,the listbox will show up .what is the best way in c/s?
Posted

1 solution

C#
private void textBox1_TextChanged(object sender, EventArgs e)
        {
            listBox1.Visible = (textBox1.Text != "");
        }

????

If that's not what you're trying to do, please elaborate and give more details, because then I don't understand what you mean...
 
Share this answer
 
v2
Comments
Member 10052592 15-May-13 20:53pm    
Thank you very much,but i want to konw what conpoment could be add to textbox as a dropdownList? what's the advantages and disadvantages?
Johnny J. 16-May-13 2:35am    
I'm not sure if I understand you correctly, but isn't what you're looking for a ComboBox then?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900