Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Forms to work like ActiveX Controls
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00886615
Message ID:
00886967
Vues:
12
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
Fil
Voir

Click here to load this message in the networking platform