Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Controls At Runtime
Message
From
16/04/2002 17:13:51
 
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00645508
Message ID:
00645719
Views:
29
That was the reason I said idea for control array is not good: cmdButton can hold reference only to one object. Statement:

Set cmdButton = UserControl.Controls.Add("VB.CommandButton", sButtonName, fraControl)

causes cmdButton to refer new button and previous buttons will not raise the event... Till now I not discover way to make "Dim ... WithEvents" statement work with control array...

If you know how much buttons will be added, add for each button WithEvents-variable. If not... I will search for solution, but I'm not sure how much time this will take...

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform