Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Focus Problem TextBox in Ribbon Collapse All
Subject Author Date
David Spenner Jul 18, 2013 - 3:52 AM

I want to focus a textBox in a RibbonGroup, but after I focused the textBox, I can’t type in the textBox.

If you want to try it, implement this code snippet in Ribbon UI Sample (MainForm)

Private Sub SampleRibbon_CurrentTabPageChanged(sender As Object, e As System.EventArgs) Handles SampleRibbon.CurrentTabPageChanged
If SampleRibbon.CurrentTabPage IsNot Nothing AndAlso SampleRibbon.CurrentTabPage.Name = HomeTabPage.Name Then
textBox1.Focus()
End If
End Sub

David Spenner Sep 19, 2013 - 9:25 AM

Hello,

the Problem is still present.
If I use a workaround with the SendKeys method I have problems with Crystal Reports.

When is the release date for Elegant Ribbon 4.4?

Technical Support Jul 25, 2013 - 4:38 PM

Thank you for reporting this bug. The fix will be available in the next release.

David Spenner Jul 18, 2013 - 4:08 AM

Here the code for C#


SampleRibbon.CurrentTabPageChanged += Ribbon_CurrentTabPageChanged;



private void Ribbon_CurrentTabPageChanged(object sender, EventArgs e)
{
if (SampleRibbon.CurrentTabPage != null)
{
if (SampleRibbon.CurrentTabPage.Name == HomeTabPage.Name)
{
textBox1.Focus();

}
}

}