current position:Home>How does WinForm change the cursor style during dragging?

How does WinForm change the cursor style during dragging?

2022-06-24 09:11:06CSDN Q & A

Namely DragEnter event :

private void Form1_DragEnter(object sender, DragEventArgs e){        Cursor.Current = Cursors.SizeAll; }private void TextBox1_DragEnter(object sender, DragEventArgs e) {     Cursor.Current = Cursors.SizeAll; }

But the effect is still :

img


The effect I want is :

img


How do I do that ?

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/175/202206171643520779.html

Random recommended