|
-
Jan 8th, 2007, 04:40 AM
#1
Thread Starter
Hyperactive Member
[2005] Open My Form But Hide It
Hello,
I have a splash screen that loads when my application starts.
This splash screen allows the user to log in, then once their credentials are verified it loads the main form.
This usually takes a little while to build up, so instead of the user seeing the form build up, I'd like them to see a progress bar until it's loaded, then I'd like the progress bar to disappear and the loaded form to appear.
To do this, I've done the following :
Instead of opening the form, I open a progress bar form instead which has a never ending progress bar on (I need this to be never endind as I don't know how long the loading will take)
However, I don't know how to open the form (but not show it) and let it build up whilst the progress bar is on the screen.
Can anyone help me with this please ?
Thanks.
Last edited by Jonny1409; Jan 8th, 2007 at 06:22 AM.
-
Jan 8th, 2007, 06:05 AM
#2
Thread Starter
Hyperactive Member
Re: [2005] Open Form Hidden
In order to get this working I've tried the following :
1) frmSplash Loads frmProgress - This works fine
2) On the load event of frmProgress, I've added :
3) At the end of the frmMain_Load event, I've set the value of a checkbox on frmProgress to True using :
VB Code:
frmProgress.chkCloseProgress.Checked = True
4) On the Checked_Changed method of this checkbox, I've added :
VB Code:
IF chkClose.checked = true THEN
me.close
END IF
However, this doesn't seem to work either.
What am I missing ?
-
Jan 8th, 2007, 09:14 AM
#3
Fanatic Member
Re: [2005] Open My Form But Hide It
I think others have solved this by putting a panel in front of the form that is loading. Once it has loaded completely, make that panel invisible.
-
Jan 9th, 2007, 03:13 AM
#4
Thread Starter
Hyperactive Member
Re: [2005] Open My Form But Hide It
Thanks 18experience, I'll give that a go instead.
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
|