>I have a long action which may be initiated via click on a button or pressing "Enter" in ComboBox and the following code is run.
>
>
>thisform.MousePointer = 11
>my_long_calculation()
>thisform.MousePointer = 0
>
>
>The problem is that after pressing "Enter" in combobox regardless where I put this code ( keypress, valid , lostfocus or even timer event ) I can't achieve hourglass mouse pointer , it just disappears.
>No problem whatsoever with "Click" event for button.
>
>TIA
Michael, when the user presses the Enter key (any key) Windows hides the mouse cursor. Just move/activate the mouse cursor to make it reappear before changing the cursor shape.
MOUSE AT MROW("",3),MCOL("",3) PIXELS
I would also consider changing the mouse pointer for _SCREEN rather than just THISFORM mouse pointer.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.