Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WithEvents for a control array. 1

Status
Not open for further replies.

gmmastros

Programmer
Feb 15, 2005
14,902
US
I'm working on a project where I don't want to have a form, but I do want to create a control array programatically.

If I want to create a single control, I can simply declare it WithEvents, like this...

[tt][blue]Public WithEvents ControlName As ControlType[/blue][/tt]

I tried:
[tt][blue]Public WithEvents ControlName[!]()[/!] As ControlType[/blue][/tt]

Then I read that VB6 doesn't support WithEvents on a control array. So, I'm wondering if there is a way around this problem.

Any thoughts?



-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
We had a long discussion about this about 4 years ago. Scorpio66 came up with a potential workaround. Let's have a look ... <tappety tappety> ... here we are: thread222-14902
 
I can't remember what I had for breakfast. How do you remember things from 4 years ago?

Seriously though. The information in that thread looks promising. I did google searches and a TT Search. Can you tell me what you typed in to the TT Search to find that thread?

Star for your efforts. Thanks.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Why didn't I think of that? [bigsmile]

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top