Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VBControlExtender Object
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
VBControlExtender Object
Miscellaneous
Thread ID:
00688099
Message ID:
00688099
Views:
83
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
Next
Reply
Map
View

Click here to load this message in the networking platform