protected void ShowCompletionWindow() { Owner = parentForm; Enabled = true; this.Show(); control.Focus(); if (parentForm != null) { parentForm.LocationChanged += new EventHandler(this.ParentFormLocationChanged); } //control.ActiveViewControl.VScrollBar.ValueChanged += new EventHandler(ParentFormLocationChanged); //control.ActiveViewControl.HScrollBar.ValueChanged += new EventHandler(ParentFormLocationChanged); //control.ActiveViewControl.TextArea.DoProcessDialogKey += new DialogKeyProcessor(ProcessTextAreaKey); control.ActiveViewControl.Caret.Change += new EventHandler(CaretOffsetChanged); control.ActiveViewControl.LostFocus += new EventHandler(this.TextEditorLostFocus); control.Resize += new EventHandler(ParentFormLocationChanged); foreach (Control c in Controls) { c.MouseMove += ControlMouseMove; } }