Handi,
You have the form configured to be a top-level form (ShowWindow=2). Top-level forms can not be modal. You will need to add a DisplayForm (or some other name) method that shows the form and has a Read Events in in it. The button that releases the form can also have a Clear Events in it.
HTH.
>Hi,
>
>Anybody knows how to create out-of-process(.exe) Automation Server with User Interface in VFP 7 ??
>
>I have a problem when trying to open it from VB, VFP form always closed immediately after I call it from VB environment (it looks like no Read Events in VFP).
>
>Here's the code :
>
>
>
>Private Sub Command1_Click()
> Dim abc As Object
> Set abc = CreateObject("handi.formcoba")
> abc.Show (1)
>End Sub
>
>
>
>**************************************************
>*-- Class: formcoba (c:\belajar\com_server.vcx)
>*-- ParentClass: form
>*-- BaseClass: form
>*-- Time Stamp: 08/28/02 11:40:14 AM
>*
>DEFINE CLASS formcoba AS form OLEPUBLIC
>
>
> Height = 279
> Width = 280
> ShowWindow = 2
> DoCreate = .T.
> AutoCenter = .T.
> Caption = "Form"
> WindowType = 1
> AlwaysOnTop = .T.
> Name = "formcoba"
>
*snip*
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao