473,471 Members | 4,095 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Work around ListView.Cursor bug - SetCursor fixes content but not header


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 "SetCursor"
(ByVal
hCursor As IntPtr) As IntPtr
Protected Overrides Sub WndProc(ByRef m As
System.Windows.Forms.Message)
if m.Msg = WM_SETCURSOR
SetCursor(Me.Cursor.Handle)
Return
End If
MyBase.WndProc(m)
End Sub
End Class

From:

http://groups-beta.google.com/group/...686bb8f61ccd9f

Is there a better work-around that also handles the header?

Thanks,

Sam

Nov 21 '05 #1
4 3077
Hi Samuel,

So far we have no better workaround for the problem.
Also we are planning to fix the issue in the next vs.net release(Whidbey),
you may try to monitor our website for the release.
Thanks for your understanding!
Best regards,

Perter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2

I read that, but the next major release is still a long ways off..

This requires a fix in the run-time though, right? Not vs.net...

Thanks,

Sam
On Thu, 06 Jan 2005 03:08:09 GMT, v-******@online.microsoft.com
("Peter Huang" [MSFT]) wrote:
Hi Samuel,

So far we have no better workaround for the problem.
Also we are planning to fix the issue in the next vs.net release(Whidbey),
you may try to monitor our website for the release.
Thanks for your understanding!
Best regards,

Perter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


Nov 21 '05 #3
Hi

I am sorry if I did not make this more clear.
Because this is a problem in the current winform control in .net FW
1.1(vs.net 2003), while in the next release Whidbey(.net FW 2.0), the
winform control will also be updated. So the problem is not the VS.NET IDE
but the underlying Framework which provides the listview
control.(system.windows.forms.dll)

If you do have more concern on the workaround, I think you may try to
contact MSPSS for a hotfix.
You may reach MSPSS via the link below.
http://support.microsoft.com
Best regards,

Perter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #4

Thanks, that's a lot clearer.

Best regards,

Sam

On Fri, 07 Jan 2005 02:21:40 GMT, v-******@online.microsoft.com
("Peter Huang" [MSFT]) wrote:
Hi

I am sorry if I did not make this more clear.
Because this is a problem in the current winform control in .net FW
1.1(vs.net 2003), while in the next release Whidbey(.net FW 2.0), the
winform control will also be updated. So the problem is not the VS.NET IDE
but the underlying Framework which provides the listview
control.(system.windows.forms.dll)

If you do have more concern on the workaround, I think you may try to
contact MSPSS for a hotfix.
You may reach MSPSS via the link below.
http://support.microsoft.com
Best regards,

Perter Huang
Microsoft Online Partner Support

Nov 21 '05 #5

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

Similar topics

0
by: Martin | last post by:
Hi All, I am a relative newbie to Java / Applets, but am despirately after some help ! I have got the following code, which is basically a listing with button items along the sides, allowing...
3
by: Csaba2000 | last post by:
I have set onmousedown to change the cursor, but this setting is ignored (IE 5.5; NN 6.1 on Win 2K Pro) until the mouse is either moved or the mouse button is released. On Opera 7.01, the setting...
1
by: Buddy | last post by:
Hello, Does anyone know how I can tell the ListView NOT to display the three dots when it thinks the text will not fit in the column. E.g. 'Hello World' will be displayed as 'Hello...' if the...
1
by: andrewcw | last post by:
The clcik event on the ListView control seems to trigger off the item level ( the first column ). I would like to be able to trap the click event on a particular subitem ( a specific column's row...
1
by: tor | last post by:
Hi If a column in a listview isn't wide enough to show the whole content you can place the cursor on that item and you will get a tooltip?? box where you can see the whole content of that item. ...
5
by: Yura Moldavanov | last post by:
Hello, All! I have a problem with putting the ToolTips on ListView Header ToolTip Text Property must changes depending on column, which is under mosue cursor. Problem 1. Standatr .Net...
3
by: larry mckay | last post by:
anyone have the code to select and listview item or row (subitems) after a doubleclick event from a listview. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate...
2
by: Jim Frazer | last post by:
Hi, I'm working on an application in C# that will allow the user to create simple CAD drawings on a CEPC system. I would like to be able to change the cursor shape depending on the drawing mode...
4
by: justabeginner | last post by:
First of all, let me say I've had very little training in html and probably know just enough to be dangerous. I designed a website for my alumni association last summer using XHTML Transitional and...
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.