|
-
Mar 26th, 2003, 04:23 PM
#1
Thread Starter
Lively Member
Reshowing Hidden Window
I am designing a computer project for a fictitious company (My System Project for school) and I am using multiple executables for the separate departments in the project. The main screen is a logon screen (switchboard type) and after the user logs in, the department executable loads and the switchboard is hidden (to preserve the login when switching tasks (to avoid logging back in)
What I need to know is how to reshow the Switchboard form that has been hidden.
frmMain is the name of the form
The Tavern System Logon is the form Caption
"The Tavern.exe" is the executable that frmMain is in.
It is hidden and still running... so I just need the code to kill the Department Application, and reshow the switchboard form. Thanks in advance. Once I know this, I can implement it through all of my exe files.
When in the switchboard form... I called the Department apps with the Call Shell Function... in case you need to know that!
Please help... I am running short on semester.... LOL!
-
Mar 26th, 2003, 04:44 PM
#2
Lively Member
It would be far more sensible to have the whole application in a single exe, with multiple forms, rather than creating different exe files for different windows.
You could then do:
VB Code:
frmMain.Show 'shows the form
frmMain.Hide 'hides the form
Unload frmMain 'unload the form
etc
-
Mar 26th, 2003, 04:54 PM
#3
Thread Starter
Lively Member
Believe me, I thought so too!Our Instructor said separate programs... but I guess I could do it that way and show her the separate forms as exe's since it is going to be through an installer anyhow and placed on the hard drive, she should see the differences in the app forms... Thanks, I hope she shares our sense of being simplistic!
-
Mar 26th, 2003, 05:02 PM
#4
Frenzied Member
How are your apps communicating to each other?
One possible thing you could do is have a timer in the login exe that continually reads a registry key, looking for a value. Then in your other exe you could set this value when you wanted the login form to show itself again.
But having it all in one exe would definitely be simpler.
-
Mar 26th, 2003, 05:53 PM
#5
Thread Starter
Lively Member
I send the variables needed on the other forms through the shell function. I am going to take all my forms and put them in one project... she can like it or lump it! Too much trouble, too much code, and does he same job with less swapping! Thanks for responding so quickly, I was in agreement of one program with multiple forms from the beginning.. Pasing variables are so much simpler that way, and security and login is the same!
On a completely different subject:
Is anyone else really looking forward to this weekend's basketball games? I cannot wait.. March Madness is the Greatest!
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
|