Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP User Interface in Visual Basic
Message
 
 
To
28/08/2002 03:15:36
Handi Rusli
PT. Alam Sumbervita
Jakarta, Indonesia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00694337
Message ID:
00694429
Views:
12
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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform