Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add Unknown # of controls at Runtime
Message
 
To
31/12/2002 16:34:25
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00737005
Message ID:
00737081
Views:
20
Control and Object cannot have events. You need to declare as a specific type for this (textbox, checkbox, label, ...). You surely don't have many different types? You could declare one object for each data type.


>Hit the send before I was ready...
>
>So how do I do the WithEvents? I've tried adding
>
>Private WithEvents v_ctlDynamic as control
>Private WithEvents v_ctlDynamic as object
>
>I keep getting Type Mismatch errors on the
>
>Set v_ctlDynamic = Controls.Add... line
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform