This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| winforms:hide_mouse_cursor:index [2026/07/08 02:17] – created 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 13: | Line 19: | ||
| private static byte[] Data; | private static byte[] Data; | ||
| - | // | ||
| - | // Summary: | ||
| - | // An invisible cursor for use on platforms that do not support the System.Windows.Forms.Cursor.Hide | ||
| - | // | ||
| public static Cursor Invisible { get; } | public static Cursor Invisible { get; } | ||
| Line 60: | Line 62: | ||
| } | } | ||
| } | } | ||
| + | |||
| </ | </ | ||