long process on Form Load Event cause control to show delay any suggestion ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shahjapan
    New Member
    • Apr 2007
    • 63

    long process on Form Load Event cause control to show delay any suggestion ?

    Hello,

    I am using VS 2005.

    I have a treeView Control on My Form,
    I am filling Tree from DB and it takes a long.

    but during this process my other controls, like Button, Label, etc are not loaded, do u have any idea how to do it without Threading ?

    Regards,
    Japan Shah
    email:shahjapan @gmail.com
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    Originally posted by shahjapan
    Hello,

    I am using VS 2005.

    I have a treeView Control on My Form,
    I am filling Tree from DB and it takes a long.

    but during this process my other controls, like Button, Label, etc are not loaded, do u have any idea how to do it without Threading ?

    Regards,
    Japan Shah
    email:shahjapan @gmail.com
    Do the DB operation at the end of form_load functions

    cheers

    Comment

    Working...