Setting Cursor in Class

  • Thread starter Thread starter Lalit Bhatia
  • Start date Start date
Hi Lalit

I would suggest that if your class is not a form, i.e. does not have its own
user interface, then you possibly should not be setting the cursor. Consider
raising an event (Waiting, say) to notify the owner of the class object that
something has happened that requires the user to be informed of a delay. The
owner, presumably a form with a user interface, can then set the cursor.
When the task is complete, raise another event (Waited, say) and the parent
can reset the cursor.

HTH

Charles
 
Hi,

Yes, you are write but I have to do it this way only.
My code is called from Main function once the processing of all forms is
finished.
Here I save data to the database.

Lalit
 
Back
Top