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.

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.

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.

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.

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.

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.

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.

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.

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.

The 1 makes the form modal

Brian

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

Hi Owen

You need to show the form as modal.

Form1.Show VBModal

Regards,

Madhu

1. MODAL FORM & NON MODAL FORM

You can't. That's the definition of a modal form!

--

2. How to use a magneto-optical jukebox to store tablespaces

3. Modal form not acting modal

4. ANNOUNCE: Senora 0.4 is here

5. Desktop form and modal/non-modal dialog boxes

6. unrecognizable database format

8. Modal form to communicate with another form

10. FP2.5 MAC--Cut/paste/copy while doing a READ MODAL

12. Newbie question: making a scoreboard with FM

11 post • Page:**1** of **1**