Change mouse pointer in IExtension

Discussion created by lucabala on Apr 12, 2011
Latest reply on Apr 12, 2011 by lucabala
Hello everyone!
I created an extension for ArcMap, and when the user hide/show some of the layers in the Table Of Contents window, I need to repaint some polygons. But the map has too many polygons, it may take a while, so I have need to change the mouse pointer to an hourglass.
I googled a lot but have not found how. I tried to use this:
void RepaintPolygons() {
    IMouseCursor cur = new MouseCursorClass();
But this did not work correctly, the mouse pointer is not updated immediately.
I appreciate everyone's help.