I have a form with a button and a textbox.
I have a also a class Cls_Import with a public function Import performing a long task.
From Import I use RaiseEvent to notify main form to write some task info in the textbox.
How to show the wait cursor during the long task?
I did something like this:
But doesn't work.
Private Sub cmdImport_Click()
If oImp Is Nothing Then
Set oImp = New Cls_Import
Me.MousePointer = vbHourglass
bRet = oImp.Import() 'a long task here
Me.MousePointer = vbDefault
What must be done?