PC Review


Reply
 
 
sarndt
Guest
Posts: n/a
 
      2nd Apr 2010
If you have a set of control toolbar objects on a worksheet at design time
that you've created events for in a worksheet module collection and use in a
class module, and you add objects at run time to the worksheet, how do you
add events for the new objects to the collection? And is there anything else
you need to do to recognize the new object events

Thanks

Steve
 
Reply With Quote
 
 
 
 
vanderghast
Guest
Posts: n/a
 
      6th Apr 2010
There is few need to add an event if you are the owner of the two sides of
the code (the one raising the event and the one consuming it). Instead of
raising the event, call the procedure you wish to be executed: in response
to a click on your button, in the button_click event (form Microsoft), don't
raise an event of your own, call the intended method, directly. Events are
great if there are two different owners of the code, like for a button click
event, there is Microsoft, raising the event, and you, consuming it with an
handler.

Hoping it makes sense,
Vanderghast, Access MVP


"sarndt" <(E-Mail Removed)> wrote in message
news:FB336542-4AE4-4EA4-9CD5-(E-Mail Removed)...
> If you have a set of control toolbar objects on a worksheet at design time
> that you've created events for in a worksheet module collection and use in
> a
> class module, and you add objects at run time to the worksheet, how do you
> add events for the new objects to the collection? And is there anything
> else
> you need to do to recognize the new object events
>
> Thanks
>
> Steve


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Item open events and double click events in exchange client extension. Fanxa Microsoft Outlook Program Addins 1 9th Aug 2006 08:18 AM
Hook events in Compact framework to monitor screen change events =?Utf-8?B?bGVpZ2h0b25y?= Microsoft Dot NET Compact Framework 4 21st Feb 2006 07:40 AM
Events in security events - www0.up.snet... Virus? Trojan? what the h...? Ricardo Pistarino Microsoft Windows 2000 Security 4 14th Jul 2003 12:38 AM
Events in security events - www0.up.snet... Virus? Trojan? what the h...? Ricardo Pistarino Anti-Virus 0 11th Jul 2003 01:34 PM
Events in security events - www0.up.snet... Virus? Trojan? what the h...? Ricardo Pistarino Microsoft Windows 2000 Networking 0 11th Jul 2003 01:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:40 PM.