This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| winforms:hide_mouse_cursor:index [2026/07/08 02:17] – mfranklin | winforms:hide_mouse_cursor:index [2026/07/08 02:28] (current) – mfranklin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== Hiding the Pointer |
| - | The ComfileTech.WinForms implementation does not support [[https:// | + | The ComfileTech.WinForms implementation does not support [[https:// |
| <code csharp> | <code csharp> | ||
| - | if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) | + | public partial class Main : Form |
| { | { | ||
| - | Cursor = Cursors.Invisible; | + | |
| + | { | ||
| + | if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) | ||
| + | { | ||
| + | | ||
| + | } | ||
| + | } | ||
| } | } | ||
| Line 56: | Line 62: | ||
| } | } | ||
| } | } | ||
| + | |||
| </ | </ | ||