Tag Archives: WM_NCLBUTTONDOWN

Draw an analog clock in C#

This example demonstrates several useful techniques including: Context menus Restricting a form to a region to give it a shape. Moving a form with no title bar Double buffering Drawing with transformations Drawing an analog clock When you right-click the … Continue reading

Posted in animation, drawing, forms, graphics | Tagged , , , , , , , , , , , , , , , , , | 2 Comments

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