Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Help with VB conversion
I am implementing an OCX control and only have a VB example.
The VB code is :-
Private Sub Form_Activate ()
SplitFrame1.AttachControl ScrollPanel1, 1
End Sub
Where the object ScrollPanel1 is placed on the startup form
I have created a form with both the above objects and tried the following in the SplitFrame1 object's initial event :-
thisform.SplitFrame1.AttachControl(" ScrollPanel1, 1")
I get an error OLE error code 0x80020005: Type mismatch
Could anyone please help with my misunderstanding
Thanks
John Harriss
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