Tag Archives: move form

Move a form without a title bar in C#

When the user presses the mouse down over the green lblMoveForm Label in the form’s upper right corner, the following event handler executes. // On left button, let the user drag the form. private void lblMoveForm_MouseDown(object sender, MouseEventArgs e) { … Continue reading

Posted in forms, user interface | Tagged , , , , , , , , , , , | Leave a comment

Make a transparent form and let the user move it in C#

To make a transparent form, set the form’s TransparencyKey property to the same color as the form’s BackColor. If you like, you can give the form a BackgroundImage containing the color. However if you do, be sure to use a … Continue reading

Posted in controls, forms, graphics | Tagged , , , , , , , , , , | 1 Comment