public void RemoveAfter() { AdvancedTextBox atb = fm.CurrentControl as AdvancedTextBox; if (atb != null && atb.Focused) { atb.RemoveAfter(); } }