protected internal override bool ProcessMnemonic(char charCode)
{
if ((!this.UseMnemonic || !Control.IsMnemonic(charCode, this.Text)) || !this.CanProcessMnemonic())
{
return(false);
}
Control parentInternal = this.ParentInternal;
if (parentInternal != null)
{
System.Windows.Forms.IntSecurity.ModifyFocus.Assert();
try
{
if (parentInternal.SelectNextControl(this, true, false, true, false) && !parentInternal.ContainsFocus)
{
parentInternal.Focus();
}
}
finally
{
CodeAccessPermission.RevertAssert();
}
}
return(true);
}