Information générale
Catégorie:
Contrôles ActiveX en 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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement