Focusing specific control within a C1Ribbon

Posted by: aruud on 21 March 2024, 4:05 pm EST

    • Post Options:
    • Link

    Posted 21 March 2024, 4:05 pm EST - Updated 22 March 2024, 2:54 pm 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, 9: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, 2:55 pm 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