Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Hides? 1

Status
Not open for further replies.

Terabithia

Programmer
Aug 31, 2004
70
US
This is a simple problem but is causing me some grief. I have a subroutine in a module that displays a form with a progress bar, loads another form, then unloads the progress bar form.

One problem is when this is all done, the main form that calls all of this vanishes behind any other open applications.

The other problem is runtime error 364 ("Object was unloaded") is generated on the Load frmDatabaseSearch
line after the form has been loaded and used.

Snipet from subroutine:

'Show form
frmProgressBar.Show

'Brute force get arround error on next line
On Error Resume Next

'Load database search form
Load frmDatabaseSearch


Snipet from end of form load event in frmDatabaseSearch:

'Unload progress bar form
Unload frmProgressBar

'Show this form
Me.Show vbModal
 
I had already looked into what you suggested, however there were a few negatives also, such as no window could be moved over the "protected" one. I was able to rearrange my code and achived the needed result, though i am still not pleased with it.

Thanks for the suggestion, I appreciate it and will note if for future use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top