473,396 Members | 2,033 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,396 software developers and data experts.

Different Cursor on ListView

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 "NO" only when the
mouse is over the ListView. It should be default over the other
controls on the form.
I have tried many things but nothing seems to work. I am able to set
the Cursor to No when the Listview is disabled ...but the cursor does
not change to default if I leave the Listview control... The mouse
events dont seem to help either.
Next I tried using the Cursor.draw(graphics, rectangle) method with the
rectangle being the size of the Listview control. I thought this would
limit the No cursor only within this rectangle. But Nope did not work!
Even if i change the cursor property to anything else from the designer
for the listview or even the form..it doesnt seem to work...

what am i missing??????? appreciate all responses

Thanks,
Vinit

Feb 25 '06 #1
1 1916
Rog
I believe this to be a bug with MS.
Rog

Vinit wrote:
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 "NO" only when the
mouse is over the ListView. It should be default over the other
controls on the form.
I have tried many things but nothing seems to work. I am able to set
the Cursor to No when the Listview is disabled ...but the cursor does
not change to default if I leave the Listview control... The mouse
events dont seem to help either.
Next I tried using the Cursor.draw(graphics, rectangle) method with the
rectangle being the size of the Listview control. I thought this would
limit the No cursor only within this rectangle. But Nope did not work!
Even if i change the cursor property to anything else from the designer
for the listview or even the form..it doesnt seem to work...

what am i missing??????? appreciate all responses

Thanks,
Vinit

Feb 25 '06 #2

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

Similar topics

3
by: Aaron Queenan | last post by:
I have a form which performs some asynchronous code. I want to display a wait cursor when it starts, and hide the wait cursor when it has completed. This part works fairly well, using: ...
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...
1
by: Riccardo Giomi | last post by:
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...
0
by: Tom | last post by:
Why is it when I change the cursor in Visual Studio for ListView during design time it does not change during runtime ? I was sure that there must be a reason why Cursor was put there in the...
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...
4
by: Shane | last post by:
I have a text box select items in a listview as text is being typed into the text box. I get the select bar to move correctly in the Listview control. If the user presses the down or up key in...
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...
3
by: Tibor Odehnal | last post by:
Hello, i have a crazy bug on one Machine. My Application is running fine on 6 Workstations (XP an W2K) On a new one (XP) i will have a black box as cursor if i want to resize a listview...
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: 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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.