[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.
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 ?
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.
Re: [2005] Open My Form But Hide It
Thanks 18experience, I'll give that a go instead.