Click to See Complete Forum and Search --> : 2nd form lags open
cougar36
Jan 24th, 2000, 12:49 AM
When my main form is open and i open a directory list form(i choose which file i want to open), after i select the file i want to open the form stays open until it is done reading in the whole file. I am sure there is a simple way to fix this but i do not know how. a msgbox helps ,but would like to get away from that.
chuck
VBfreak
Jan 24th, 2000, 02:53 AM
Do you mean that you use a new form for the directory list or that you use a dialog box. Let me know !!!
netSurfer
Jan 24th, 2000, 03:44 AM
If I'm correct, you have your main form, you open up a dialog to select a file. After selecting a file, that dialog stays up until the file is loaded. What are you loading the file into? Is it a pic, a text file? Where are you doing the code to load it? To get around it, have the Dialog form that you use to select a file send back that file name to what ever routine had opened it. Store that filename, close the form and then do your opening routine.
cougar36
Jan 24th, 2000, 10:37 AM
I am new at this so i will try to explain this better. I open a second form to load the file and use the dirlist box and filelist box and drivelist box. Should i have used a dialog box instead. if so which one. thanks for any help
chuck
cougar36
Jan 24th, 2000, 10:46 AM
One more thing, what i wanted to do was open a text file and read it into a database. it is a text file and takes up to 2 or 3 minutes to load.
thanks
chuck
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.