We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Keypress doesn't trigger

Hi, I've the next code for my sfcombobbox in order to do something when de Enter/Return key is pressed, but the KeyPress event doesn't work


private Syncfusion.WinForms.ListView.SfComboBox sfCBProveedores; this is the declaration at the generated code

 private void SfCBProveedores_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar==(char)Keys.Return)
            {
                txtdescripcion.Focus();
            }
        }

I tried with Keys.Enter and the result is the same. Also happens with other controls like TextBoxExt txtdescripcion
thanks!


1 Reply

VR Vijayalakshmi Roopkumar Syncfusion Team September 16, 2019 11:01 AM UTC

Hi Sebastian

Thank you for contacting Syncfusion Support.

We have checked your reported query and found that the KeyPress event is not get triggered in SfComboBoxAdv, but we could not able to reproduce the reported problem . We have prepared a simple sample for the same and you can download it from below for your reference:

Sample Link: https://www.syncfusion.com/downloads/support/forum/147539/ze/SfComboBoxIssue_fd8817d3-102326247 

Can you please check the sample and video , and let us know whether we are following correct procedure to reproduce this issue? If not, please let us know about the brief replication scenario and also let us know about your product version details.
It would be helpful for us to proceed on this further.

Regards
Vijayalakshmi V.R. 


Loader.
Live Chat Icon For mobile
Up arrow icon