protected override void OnVisibleChanged(EventArgs e)
{
base.OnVisibleChanged(e);
this.txtSnippet.Text = string.Empty;
this.SetPosition();
if (Visible)
{
this.txtSnippet.Focus();
this.txtSnippet.AutoComplete.Show(0, this._snippetList);
}
else
this.Scintilla.Focus();
}