Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Forms to work like ActiveX Controls
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00886615
Message ID:
00886967
Views:
11
Thanks. I have now got to first base!
I can now call methods and display messages, but although I create a Form and make it visible, I cannot see it at all. Note - I have compiled it as an EXE and Registered it. What am I doing wrong here?

The following is my code contained in a PRG file:

DEFINE CLASS MyAuto AS CUSTOM OLEPUBLIC
FirstName = "Russell"

PROCEDURE MyForm
=MESSAGEBOX("Start") && This works
oForm = CREATEOBJECT("Form")
oForm.Caption = "My Automation Server"
oForm.Visible = .T. && THIS DOES NOT WORK
=MESSAGEBOX("Form " + oForm.Caption + " Visible?") && This works
RETURN "Form " + oForm.Caption && This works. ie form is still active.
ENDPROC

ENDDEFINE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform