General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only