|
-
Mar 5th, 2008, 03:06 PM
#1
[RESOLVED] Dim WithEvents for an command button array
What I want to do is to create a dynamic button array and use WithEvents for the events for the array. How can one do this?
What I have Tried is
Dim WithEvents cmdButtons as CommandButton
This works as it should for one button but
Dim WithEvents cmdButtons() as CommandButton
is a VB no-no...
I am using Controls.Add to create the buttons and what I want is the events sub to handle the button array, like such:
Private Sub cmdButtoms(Index)
How to?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|