So being a “good Samaritan programmer”, I am going to document it in my Tech Page so that this would be one more resource on modal form that will be available to all programmers world wide.
Here it goes…
First of all create a new form. For example purpose, lets name this form “frmMyForm”.
Next, insert the snippet listed below to the form that is calling the form (“frmMyForm”).