public void InsertLine() { AdvancedTextBox atb = fm.CurrentControl as AdvancedTextBox; if (atb != null && atb.Focused) { if (achack) { achack = false; } else { atb.InsertLine(); } } }