Click to See Complete Forum and Search --> : How do i change modaless form to modal


Sigal Laniado
November 25th, 1999, 09:04 AM
How do i change modaless form to modal?

November 25th, 1999, 06:17 PM
Use Show method of form with vbModal parameter. This is an example:

frmForm.Show vbModal, MDIMain' frmForm will be displayed as Modal, MDIMain is a parent form



Vlad

Sigal Laniado
November 28th, 1999, 01:00 AM
Maybe i didn'y clarify my question. I want to show the form with vbModeless but that it will behave as a Modal.

Crazy D
November 28th, 1999, 06:11 AM
Disable the window that shows the window.. uhmmm
Me.Enabled = False
MyForm.Show vbModeless, Me

Now you only need to figure a way to tell the Me form when MyForm is done... I usually use an event for such things.

Crazy D :-)
"One ring rules them all"

Sigal Laniado
November 28th, 1999, 08:06 AM
Thanks

Ravi Kiran
November 28th, 1999, 11:30 PM
Hi,
I am just curious... Can you explain the case a little more please.. where & why you are showing a form Modeless and you want to behave it modal.!
I couldn't figure out one...

RK