|
-
Nov 23rd, 1999, 12:57 PM
#1
Thread Starter
Addicted Member
I am populating a listview with a 4000 records recordset on FORMLOAD. the thing is my form does not show before leaving the user with the impression that the system froze for about 7 seconds.
Is there a way to show the form before populating the listview? I have tried populating on Form_Activate and also me.refresh before populating with no luck.
-
Nov 23rd, 1999, 01:29 PM
#2
Lively Member
I have similar programs, with alot of uploads at startup that seem like the machine has hung for a short period of time.
I always use a 'Splash Screen' and a 'DoEvents' statement in the Startup procedure loop.
For Example
Create a new Module
Create a Sub in the Module as follows
Sub Main()
Load frmSplash
frmSplash.Show
DoEvents
'Main Loop here (Populate the 4000 entries)
UnLoad frmSplash
frmMain.Show
End Sub
Steve.
-
Nov 23rd, 1999, 07:13 PM
#3
Lively Member
-
Nov 23rd, 1999, 08:08 PM
#4
Try to move your code to Form_Activate event. It will show the form an then populate the ListView. Durring populating time you can provide the user with the Hourglass cursor, so he/she will know that the process is running.
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
[This message has been edited by Serge (edited 11-24-1999).]
-
Nov 24th, 1999, 08:16 AM
#5
Thread Starter
Addicted Member
Thanks for your advice.... I had already tried it on Form_Activate and thought it didn't work but found out that I had some code in Form_Load that changed a value in a ComboBox and THAT trigered the populating of the list... hhehehe had to work a little there...
Thanks...
David Laplante
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|