correct form event to use

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Will

    #1

    correct form event to use

    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
  • Juan Gabriel Del Cid

    #2
    Re: correct form event to use

    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


    Comment

    Working...