34,333
edits
Changes
no edit summary
</pre>
To test this code press F5 to compile and run the application. When it appears click on the button in the main form and the sub form will appear. You will notice, since this is a non-mocal modal form, that you can still interact with the main form while the sub-form is visible (i.e you can click on the button in the main form).
Close the running application.
</pre>
Press '''F5 ''' once again to build and run the application. Aftyer After pressing the button in the main form to display the sub form you will find that the main form is inactive as long as the sub form is displayed. Until the sub form is dismissed this will remain the case.
Close the running application.