I created a usercontrol which I use in a custom combobox. This usercontrol is composed of a textbox and a checklistbox. I use the textbox to filter the content of the checklistbox using the textchanged event. The problem is that the event is only triggered when I close the combobox. Can you tell me how to trigger the text changed event?
Hi Benjamin,
Can you please try with the latest build and verify the issue is fixed? https://www.wisej.com/builds
Best,
Levie
Hi,
Install new development build and it does not work. Text changed is fired only when dropdown is closing.
Benjamin
Hi Benjamin,
fixed in the latest Wisej development build.
Best regards
Frank
Adding this to the CustomUserControl should help the focus issue a bit more for your case:
private void ComboBoxWithTextBox_Load(object sender, EventArgs e)
{
this.textBox1.Focusable = true;
this.textBox1.Focus();
}
Nevertheless, it’s still an issue and we’re working on a solution for it, thanks for reporting!
Best,
Levie
Hi Benjamin,
Can you try the sample I have attached?
Is this the issue you’re describing?
If not, it would be helpful to attach a sample so we can replicate the issue as it is on your machine!
Best,
Levie
As a temporary workaround, add this code to the page with the UserComboBox control:
private void Page1_Load(object sender, EventArgs e) { this.myDropDownControl.Focusable = true; }
Let me know if this works for you!
Best,
Levie
Hi Benjamin,
I was able to replicate the issue and it appears to be an issue with how the TextBox gets focus. I’ve logged the issue as #2178. We’ll let you know when it’s fixed!
Best,
Levie