Probleme avec un Module dans un ActiveX

Nicolas H. Messages postés 36 Date d'inscription vendredi 19 octobre 2001 Statut Membre Dernière intervention 26 mai 2016 - 12 déc. 2002 à 21:35
TheSaib Messages postés 2367 Date d'inscription mardi 17 avril 2001 Statut Membre Dernière intervention 26 décembre 2007 - 12 déc. 2002 à 23:36
Salut,

Voila mon probl.

j'ai un module dans un ActiveX et une des fonctions qui se trouve dans ce module doit ecrire sur ma form soit UserControl1 mais y me fait tj une erreur.

Je sais donc pas ecrire sur ma form avec cette ligne UserControl1.Label1.caption = "1" par exemple avec cette exemple le soft plante et je sais pas comment ecrire sur ma form.

Merci d'avance,
Nicolas H.

1 réponse

TheSaib Messages postés 2367 Date d'inscription mardi 17 avril 2001 Statut Membre Dernière intervention 26 décembre 2007 23
12 déc. 2002 à 23:36
c normal

dans ton OCX met çà :

Public Property Get Caption() As Variant
Caption = monlabel.caption
End Property

Public Property Let SetTheCaption(ByVal str As Variant)
If mCtlT = ctProgressBar Then
If IsNumeric(RHS) = False Then Exit Property
If (str< 0) Or (str> 100) Then Exit Property
End If
monlabel.Caption = str
Refresh
End Property

|The S@ib|
0
Rejoignez-nous