Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VBControlExtender Object
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
VBControlExtender Object
Divers
Thread ID:
00688099
Message ID:
00688099
Vues:
88
Why isnt this working? The control IS added to the form,
but I can't get the crlMine_ObjectEvent sub to fire.
Option Explicit
Dim crlMine As VBControlExtender

Private Sub Form_Load()

   Set crlMine = Controls.Add("Project1.MyControl", "MyControl")
   With crlMine
      .Visible = True
      .Top = 100
      .Left = 100
   End With
   
End Sub

Private Sub crlMine_ObjectEvent(Info As EventInfo)
   
   Select Case Info.Name
   
    Case "Click"
      MsgBox "It Worked!"
   
   Case Else ' Unknown Event
      
   End Select
   
End Sub
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform