473,796 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(gra phics, 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 1933
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(gra phics, 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
4129
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: this.TopLevelControl.Cursor = System.Windows.Forms.Cursors.WaitCursor; I also want to prevent user interaction with the controls on my form while the wait cursor is displayed, so that use events (except resize and cancel) are blocked. What is the...
1
2286
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 ListView, the cursor resets to the system arrow. Even if I set the cursor property of each control to the one loaded it just ignores it. The ContextMenu doesn't support a cursor property either.
1
2541
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 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...
0
908
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 properties.. but atm it seems useless to me anyone have any idea ? Thanks Tom
2
7888
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 is being intialized, I call a method within the control that sets the cursor to Cursors.WaitCursor, then processing continues. I want the Cursor to remain that way until I set it back at any given time, and if I don't set it back, I want to...
4
4965
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 the text box, I want to move to the selected item in the listview box. The down or up arrow does set focus to the listview box and the selected item switches from the grey of being unfocused to the blue of focus. So far, so good.
4
3130
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 view and the user mouses over the header, the default cursor is displayed regardless of the Cursor property setting. Public Class MyListView Inherits ListView Const WM_SETCURSOR = &H20 Public Declare Function SetCursor Lib "user32" Alias...
3
1510
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 (instead of east/west-cursor) plus
0
2006
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 back to what I asked it to be. 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...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10201
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.