private void UpdateHighlightForm(Rectangle rect) { Cursor.Current = Cursors.SizeAll; _highlightForm.SuspendLayout(); _highlightForm.Size = new Size(rect.Width, rect.Height); _highlightForm.Location = new Point(rect.X, rect.Y); _highlightForm.ResumeLayout(); if (!_highlightForm.Visible) { _highlightForm.Show(); _highlightForm.BringToFront(); } }
private void textEditor_DragEnter(object sender, System.Windows.DragEventArgs e) { _overlayForm.Show(); _overlayForm.Location = PointToScreen(new System.Drawing.Point(0)); _overlayForm.Size = ClientSize; }