[02/03] Hiding a Forum and Messageboxes
Hey. I have two forums in my program. The first form loads, then in the background loads the second form. The second form has some code that downloads files and opens them. The code includes messageboxes that will inform the user if something goes wrong. The thing is that right on startup, I want the second form to invisible while it executes the code. If there is an error, then it will say so in a label on form one. Then from here if the user clicks the label, then it will bring form 2 into visibility and then show the message boxes associated with it. So basically is there any way that I can hide a form along with any message boxes that it might show?
Thanks
John
Re: [02/03] Hiding a Forum and Messageboxes
No. You'd have to simply set a variable that indicates that an error message needs to be displayed. Then you'd test that variable in the Activated event handler and show the message if it was set, then reset it.
Re: [02/03] Hiding a Forum and Messageboxes
Unless you wrote the code for the second form yourself and added a boolean to display the messageboxes or not based on whether you wanted it to... inefficient but doable