473,406 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Problem changing Cursor property in a ListView control

Hi
I would to display a Cursors.WaitCursor on a ListView control, so I tried

listView.Cursor = Cursors.WaitCursor

but it doesn't work at all, I see always the default cursor. The same thing happens if I set the WaitCursor in the properties window. The strange thing is that with other controls, like buttons or the treeview, it does work. The only control for which I can't change the cursor is the ListView: it does not work even if I set the current cursor property with the line

Cursor.Current = Cursors.WaitCursor

Any ideas? Is it a bug of the ListView control? Must I set some other properties of the ListView control to change the cursor

Best regards
Riccardo
Nov 16 '05 #1
1 2518
riccardo,

based on this link http://www.google.de/groups?
threadm=bfmk3l%24gla2q%241%40ID-25595.news.uni-
berlin.de , it is a known bug.

HTH,

gani
http://thedeveloperscorner.com.ph

-----Original Message-----
Hi,
I would to display a Cursors.WaitCursor on a ListView control, so I tried:
listView.Cursor = Cursors.WaitCursor;

but it doesn't work at all, I see always the default cursor. The same thing happens if I set the WaitCursor in
the properties window. The strange thing is that with
other controls, like buttons or the treeview, it does
work. The only control for which I can't change the
cursor is the ListView: it does not work even if I set
the current cursor property with the line:
Cursor.Current = Cursors.WaitCursor;

Any ideas? Is it a bug of the ListView control? Must I set some other properties of the ListView control to
change the cursor?
Best regards,
Riccardo
.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ilPostino | last post by:
I'm using this function to load a custom cursor from a .cur file; public static extern IntPtr LoadCursorFromFile(String str); It works great but if I popup a ContextMenu or Control like a...
2
by: Craig | last post by:
I'm trying to do this within a control I've created: Cursor.Current = Cursors.WaitCursor; During the initialization of the parent form, my control gets added to the form, and while the control...
7
by: David Schwartz | last post by:
I am using a few ActiveX ListViews in my VB.NET Windows Forms application. I have the ListView's HotTracking property set to False, yet when I move the mouse over an item in the ListView (without...
2
by: Just Me | last post by:
I have a usercontrol, UC1, which contains a different usercontrol, UC2, a listview and a combobox. In the code for UC1 I do: Cursor = Cursors.WaitCursor The mousepointer changes to the...
4
by: Samuel R. Neff | last post by:
I'm using this class to work around the ListView.Cursor bug in .NET 1.0/1.1. It fixes the bug as long as the user mouses around the client area of the listview but if the listview is in detail...
18
by: **Developer** | last post by:
If e.Button = MouseButtons.Left Then also from a Dim Answer As DialogResult = MessageBox.Show.. Select Case Answer Case DialogResult.Yes
1
by: Vinit | last post by:
Hi I have a form in which there is a treeview alongside a listview. Now I have certain conditions when the Listview control is disabled. When this happens I would want the Cursor to be of type...
12
by: garyusenet | last post by:
I have had no replies to my previous post so perhaps I didn't write it good enough. Please excuse new thread but i wanted to break from the last thread hopefully this thread will be better. ...
0
by: IanWright | last post by:
I'm trying to change the cursor that appears on a standard ListView when the cursor appears over an item. However I am getting a flickering effect as the mouse is changed to a finger cursor, and then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.