I'm trying to isolate this flicker/changing to the hand cursor but can't figure out where it's occuring or how to stop it. To replicate this...
1) Create a form with a ListView on it.
2) Add an image list and some images. Set the view to the large icon mode.
3) Add some items to the ListView.
Add a MouseMove event to the ListView:
Expand|Select|Wrap|Line Numbers
- private void listView1_MouseMove(object sender, MouseEventArgs e)
- {
- ListViewItem selected = this.listView1.GetItemAt(e.X, e.Y);
- if (selected == null)
- {
- base.Cursor = Cursors.Default;
- }
- else
- {
- base.Cursor = Cursors.No;
- }
- }
I've tried override both OnMouseMove and OnMouseHover to returning to ensure these don't set anything. I've also tried overriding the Cursor property and saying 'only set to default or no cursors' and that didn't work either.
Any help's appreciated.
Ian