C# How can I hide the cursor in a winforms app?

前端 未结 1 1407
别跟我提以往
别跟我提以往 2021-02-19 00:57

Im developing a touchscreen app and I need to hide the cursor whenever it is within the main Form.

Any ideas?

相关标签:
1条回答
  • 2021-02-19 01:58

    I knew this was a stupid question! Simply put

    Cursor.Hide();
    

    is all I needed in the forms constructor.

    0 讨论(0)
提交回复
热议问题