Re: Modal Form

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



methinks he might want topmost. If it truly is a modal form he needs in
order to prevent the user from accessing the base form, he can always put
the code-to-execute in its own public procedure in the base form and call it
from the load event of the modal form.

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/

Please reply to the newsgroups so all can participate.




"Bob Butler" <tiredofit@xxxxxxxxxxx> wrote in message
news:OyRZOtRgGHA.4932@xxxxxxxxxxxxxxxxxxxxxxx
"Ros" <Ros@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:49EC6C65-
8C38-434C-A73E-47F8D60D4B0C@xxxxxxxxxxxxx
Hey Gurus',

I desperately need your help.

I want to create a modal form but i also want the codes to execute
with in the procedure or function... see example

Sub Test_Procedure()
frm.show vbmodal 'message form to wait
rest of the codes to run...
unload frm
End Sub

basically... i want to close the frm after the code runs.

Then you don't want modal; or you need to move the "rest of the codes to
run" to a procedure in the modal form or another procedure somewhere that
can be called from the modal form -- then the modal form can unload itself.

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

.