For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > November 2005 > help with forms









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author help with forms
Dave

2005-11-25, 6:55 pm

Hi

I have an MDI application which goes really well however I have a problem

I am trying to add users by opening a new form so that the details can be
entered. I want it to be modal so that other screens cant be opened over
it but i cant figure out how to do this

Any ideas?


Kjell

2005-11-25, 6:55 pm

Just add the argument vbModal to .show

like:

NameOfYourForm.Show vbModal

This will force your code to stop and wait till the new form finishes,
Me.Hide for example, if you need to evaluate the content before killing it.


Kjell

"Dave" wrote:

> Hi
>
> I have an MDI application which goes really well however I have a problem
>
> I am trying to add users by opening a new form so that the details can be
> entered. I want it to be modal so that other screens cant be opened over
> it but i cant figure out how to do this
>
> Any ideas?
>
>
>

Larry Serflaten

2005-11-25, 6:55 pm


"Dave" <dave@dave.com> wrote

> I have an MDI application which goes really well however I have a problem
>
> I am trying to add users by opening a new form so that the details can be
> entered. I want it to be modal so that other screens cant be opened over
> it but i cant figure out how to do this
>
> Any ideas?



Make sure MDIChild is False...

LFS
Dave

2005-11-26, 3:55 am

the form is MDIChild Flase but when i click on another part of the screen,
the child loses focus

"Larry Serflaten" <serflaten@usinternet.com> wrote in message
news:OAW8Mdg8FHA.3660@TK2MSFTNGP09.phx.gbl...
>
> "Dave" <dave@dave.com> wrote
>
>
>
> Make sure MDIChild is False...
>
> LFS



Dave

2005-11-26, 3:55 am

Xref: TK2MSFTNGP08.phx.gbl microsoft.public.vb.general.discussion:573548

Sorted!

I need to disable the mdi screen when i open up the modal form!

Thanks


"Dave" <dave@dave.com> wrote in message
news:4388262e$0$82665$ed2619ec@ptn-nntp-reader03.plus.net...
> the form is MDIChild Flase but when i click on another part of the screen,
> the child loses focus
>
> "Larry Serflaten" <serflaten@usinternet.com> wrote in message
> news:OAW8Mdg8FHA.3660@TK2MSFTNGP09.phx.gbl...
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com