msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Modal Form

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
Ros



Joined: 04 Oct 2007
Posts: 1

PostPosted: Fri May 26, 2006 8:04 pm    Post subject: Modal Form Reply with quote

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.


Please help

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Bob Butler



Joined: 04 Oct 2007
Posts: 1325

PostPosted: Fri May 26, 2006 8:22 pm    Post subject: Re: Modal Form Reply with quote

"Ros" wrote in message
8C38-434C-A73E-47F8D60D4B0C@microsoft.com
> 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..."
Back to top
View user's profile Send private message
Randy Birch



Joined: 04 Oct 2007
Posts: 1768

PostPosted: Sat May 27, 2006 4:11 am    Post subject: Re: Modal Form Reply with quote

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" wrote in message @TK2MSFTNGP03.phx.gbl...
"Ros" wrote in message
8C38-434C-A73E-47F8D60D4B0C@microsoft.com
> 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..."
Back to top
View user's profile Send private message
Hemant_india



Joined: 04 Oct 2007
Posts: 27

PostPosted: Tue Jun 06, 2006 10:00 am    Post subject: Re: Modal Form Reply with quote

i thin using "Do events" may work
i'm not sure
--
hemu


"Randy Birch" wrote:

> 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" wrote in message
> @TK2MSFTNGP03.phx.gbl...
> "Ros" wrote in message
> 8C38-434C-A73E-47F8D60D4B0C@microsoft.com
> > 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..."
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group