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
AHadiA@gmail.com - 25 Feb 2006 05:51 GMT
Hi
Maybe I am wrong, but I think you can control any events of a control
that is disabled.
So you can set the Cursor and other things of a disabled control.
Hope it helps you
A.Hadi
AHadiA@gmail.com - 25 Feb 2006 08:07 GMT
I'm sorry
replace Can --- > Can not
in my previous post
A.Hadi