correct form event to use

  • Thread starter Thread starter Will
  • Start date Start date
W

Will

Hi All,

I'm trying to find the correct form event to use to make a
call to a database AFTER my form has been completely
painted. The call to the database takes a few seconds and
when I tried using the LOAD event for the form, the form
was half-painted (if that makes sense) while the db call
was being performed. I'd like the user to be able to look
at a fully painted form (and hourglass cursor) while the
call is being made.

Any thoughts and thanks in advance,

Will
 
I don't know what the correct event is, but even if you find it, if your DB
access takes 5 secods, the UI will hang for 5 seconds. You don't want that.

What you really want to do is start a background thread, access the DB there
and then notify your UI when the data is ready. If you need any more detail,
feel free to ask.

Hope that helps,
-JG
 
Back
Top