ComponentFactory.Krypton.Ribbon.MaskedTextBoxController.GotFocus C# (CSharp) Method

GotFocus() public method

Source control has got the focus.
public GotFocus ( Control c ) : void
c System.Windows.Forms.Control Reference to the source control instance.
return void
        public void GotFocus(Control c)
        {
            if ((_maskedTextBox.LastMaskedTextBox != null) &&
                (_maskedTextBox.LastMaskedTextBox.MaskedTextBox != null) &&
                (_maskedTextBox.LastMaskedTextBox.MaskedTextBox.CanFocus))
            {
                _ribbon.LostFocusLosesKeyboard = false;
                _maskedTextBox.LastMaskedTextBox.MaskedTextBox.Focus();
            }
        }