Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Form.hide allow code to continue "beyond" a Form.Show Modal in vb6?

I'm doing a Form.Show Modal to force code execution until the user closes the shown form.

This form gets shown over again, so I'm thinking I'll just HIDE it. This seems to work OK, but wanted to confirm.

So:

  1. frmMessage.Show MODAL
  2. user clicks OK and frmMessage.Hide
  3. code continues
like image 643
Clay Nichols Avatar asked May 16 '26 23:05

Clay Nichols


1 Answers

You can either close or hide the modal form to allow the calling code to continue executing. At some point before your application closes you should make sure you unload any hidden forms though. I've had issues in my application with the application not always shutting down correctly when forms are still loaded and hidden. Might just depend on what resources your hidden forms are using.

like image 161
Marc Avatar answered May 19 '26 03:05

Marc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!