For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Addins > August 2005 > SelectedVBControlsEvents









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author SelectedVBControlsEvents
Guus Ouwerkerk

2005-08-23, 7:02 pm

The SelectedVBControlsEvents object does not raise "ItemRemoved" event when
deselecting a control when more then 2 controls are selected.
The only time the "ItemAdded" and "ItemRemoved" events are raised properly
is when you've selected only one control and change the selection to another.
When adding a second control to the selection first the "ItemRemoved" event
is raised removing the first selected control and the raising "ItemAdded"
twice to add both controls to the "SelectedVbControls" collection. From the
3th control added to the selection on I only get the "ItemAdded" event as
expected.
Why is this happening ????
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com