Newbie question: How do I make a form modal?

Newbie question: How do I make a form modal?

Post by Roland Kroo » Fri, 24 Apr 1998 04:00:00



try    -

form.Show  vbmodal


>In Foxpro one just clicks the 'modal attribute". But what is the trick in
>VB5?

>Thanks in advance for any help.

>Owen Brandon
>Victoria, V.C.

 
 
 

Newbie question: How do I make a form modal?

Post by Owen Brando » Sun, 26 Apr 1998 04:00:00


In Foxpro one just clicks the 'modal attribute". But what is the trick in
VB5?

Thanks in advance for any help.

Owen Brandon
Victoria, V.C.

 
 
 

Newbie question: How do I make a form modal?

Post by Patron » Sun, 26 Apr 1998 04:00:00


Hi!

Show 1, thats all of it.

Michael Patron


 
 
 

Newbie question: How do I make a form modal?

Post by Dave O'Tool » Mon, 27 Apr 1998 04:00:00


myform.show 1

or

object.Show style

The Show method syntax has these parts:
If style is 0, the form is modeless; if style is 1, the form is modal.

Regards,

Dave O'Toole



Quote:

> In Foxpro one just clicks the 'modal attribute". But what is the trick in
> VB5?

> Thanks in advance for any help.

> Owen Brandon
> Victoria, V.C.

 
 
 

Newbie question: How do I make a form modal?

Post by Flewi » Tue, 28 Apr 1998 04:00:00


It's all in how you "Show" the form....

myForm.Show 1

will do it for you.



Quote:

> In Foxpro one just clicks the 'modal attribute". But what is the trick in
> VB5?

> Thanks in advance for any help.

> Owen Brandon
> Victoria, V.C.

 
 
 

Newbie question: How do I make a form modal?

Post by M. Hallber » Tue, 28 Apr 1998 04:00:00


Try "frmMyForm.Show vbModal"... (Note: this doesn't work on MDI child forms)

/M. Hallberg


Quote:

>In Foxpro one just clicks the 'modal attribute". But what is the trick in
>VB5?

>Thanks in advance for any help.

>Owen Brandon
>Victoria, V.C.

 
 
 

Newbie question: How do I make a form modal?

Post by Jason Thompso » Tue, 28 Apr 1998 04:00:00


The code is as follows.

Form.Show vbModal

Replace Form with the name of the form you want to show.  Put this code where
the form is called from, for instance if a command button is clicked an shows
the form.

Private Sub Command1_Click()

Form.Show vbModal

End Sub

Jason


> In Foxpro one just clicks the 'modal attribute". But what is the trick in
> VB5?

> Thanks in advance for any help.

> Owen Brandon
> Victoria, V.C.

 
 
 

Newbie question: How do I make a form modal?

Post by Jason Thompso » Tue, 28 Apr 1998 04:00:00


The code is as follows.

Form.Show vbModal

Replace Form with the name of the form you want to show.  Put this code where
the form is called from, for instance if a command button is clicked an shows
the form.

Private Sub Command1_Click()

Form.Show vbModal

End Sub

Jason


> In Foxpro one just clicks the 'modal attribute". But what is the trick in
> VB5?

> Thanks in advance for any help.

> Owen Brandon
> Victoria, V.C.

 
 
 

Newbie question: How do I make a form modal?

Post by brian_gra.. » Sat, 02 May 1998 04:00:00


On Sat, 25 Apr 1998 09:20:43 -0700, "Owen Brandon"


>In Foxpro one just clicks the 'modal attribute". But what is the trick in
>VB5?

>Thanks in advance for any help.

>Owen Brandon
>Victoria, V.C.

use frmWhatever.Show 1

The 1 makes the form modal

Brian

 
 
 

Newbie question: How do I make a form modal?

Post by Jay Vint » Sat, 02 May 1998 04:00:00


You might prefer using one of the symbolic constants already defined
in VB so your code is more readable

frmWhatever.Show vbModal


>On Sat, 25 Apr 1998 09:20:43 -0700, "Owen Brandon"

>>In Foxpro one just clicks the 'modal attribute". But what is the trick in
>>VB5?

>>Thanks in advance for any help.

>>Owen Brandon
>>Victoria, V.C.

>use frmWhatever.Show 1

>The 1 makes the form modal

>Brian

 
 
 

Newbie question: How do I make a form modal?

Post by GEMSD » Thu, 07 May 1998 04:00:00


Hi Owen

You need to show the form as modal.
Form1.Show VBModal

Regards,
Madhu