Cursor on ListView

V

Vinit

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
 
A

AHadiA

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top