User Control with DataSource, DisplayMember and ValueMember property
Hello...
I need to create a user control which can be used in my all projects. I have created a user control with a TextBox Control and a ListBox Control. My goal is that as soon as any character is pressed in the textbox, Listbox's item which starts from that character should be selected. I have done all the coding needed for the functionality but my problem is that when I add this usercontrol to my form, I should be able to change the DataSource, displaymember and valuemember properties at designtime. But I cannot see these properties when I add the control on the form. Any suggessions please.
Regards,
Thanks.
Dinesh Kumaar
Re: User Control with DataSource, DisplayMember and ValueMember property
There's no need for your control. Just use a ComboBox with its DropDownStyle set to Simple. You can inherit it and add that functionality or just handle the TextChanged event in your application code.