I don't think it really matters. I have done both. The docs I have read said to put all Load of controls in the OnLoad. The New sub of course gets called first, but if you show the form right after you create it, then the OnLoad event is next, so it shouldn't be any faster.
-----Original Message----- From: Brian G. Vallelunga [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 09, 2002 10:45 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Loading forms I've been toying with this idea as well. I'm curious, for those that are spawning worker threads to fetch and load the data, are you doing this from within the constructor or the OnLoad event? For that matter, is there a difference practically? Brian -----Original Message----- From: Dan Souk [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 09, 2002 7:18 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Loading forms Interesting. Thanks. I've always wanted to incorporate threading but it was never a realistic option pre-.NET. -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of franklin gray Sent: Thursday, May 09, 2002 5:30 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Loading forms Well, the spawning of a new thread isn't that hard, just dealing with all the little things such as showing the right cursor, dealing with the case that if a user closes the form before the retrieval thread is done and so on. -----Original Message----- From: Dan Souk [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 09, 2002 5:26 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Loading forms How much is a lot? -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of franklin gray Sent: Thursday, May 09, 2002 5:10 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Loading forms Just out of curiousity, does anybody use a different thread to retrieve data to populate a form besides me? I like how it doesn't bogg down the UI thread and forms paint better, but it's a lot more work. Just curious. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.