Focusing specific control within a C1Ribbon

Posted by: aruud on 21 March 2024, 7:05 am EST

    • Post Options:
    • Link

    Posted 21 March 2024, 7:05 am EST - Updated 22 March 2024, 5:54 am EST

    Hello Uttkarsh,

    Thank you for the quick response and clear project. I forgot the RibbonTextBox is a container and looked upward instead of inward.

    Unfortunately it seems like some Windows code occurs at the end of my RibbonTextBox_ChangeCommitted event that defocuses the TextBox anyway, making my question useless. Apologies for wasting your time.

    Thanks,

    -Alex

  • Posted 22 March 2024, 12:20 am EST

    Hello,

    You can select the ribbonTextBox by focusing its textbox as follows:

    ribbonTextBox1.TextBox.Focus();

    Please refer to the attached sample for implementation. (see Ribbon_FocusTextBox.zip)

    Regards,

    Uttkarsh.

  • Posted 22 March 2024, 5:55 am EST

    Hello Uttkarsh,

    Thank you for the quick response and clear project. I forgot the RibbonTextBox is a container and looked upward instead of inward.

    Unfortunately it seems like some Windows code occurs at the end of my RibbonTextBox_ChangeCommitted event that defocuses the TextBox anyway, making my question useless. Apologies for wasting your time.

    Thanks,

    -Alex

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels