This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .non-selectable { | |
| -webkit-touch-callout: none; | |
| -webkit-user-select: none; | |
| -khtml-user-select: none; | |
| -moz-user-select: none; | |
| -ms-user-select: none; | |
| user-select: none; | |
| cursor: default; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Don't forget to include the following: | |
| using System.Windows.Forms; | |
| using System.Drawing.Drawing2D; | |
| // Form paint event. | |
| private void FormRound_Paint(object sender, PaintEventArgs e) | |
| { | |
| // Put this in the form paint event void. | |
| // Create a GraphicsPath that should represent the form's shape. | |
| GraphicsPath formShape = new GraphicsPath(); |