internal void SetFocus() { switch (_CurrentTab) { case DesignTabs.Edit: scintilla1.Focus(); break; case DesignTabs.Preview: rdlPreview.Focus(); break; case DesignTabs.Design: dcDesign.SetFocus(); break; } }