Event firing more times than it should.... odd behaviour with HScroll events

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

Hi,

I made a control component that consits of 3 HScroll bars and I grab the
Scroll event for each one of them then send my own ValuesChanged event with
the EVentArgs containing an enum which specifies what scrollbar changed,
..Top, .Middle, and .Bottom etc..

The odd thing is, when I catch this event thats fine, i throw my own but
mine gets thrown 2 times to the subscriber, when I am only sending one.
This is odd. My event is firing twice when im only firing it once. Any
ideas? Im definately sending it ONCE and not twice.
 
You fire it once but there might be two objects subscribed
for it, so it is fired once per each object.

joe
 
Back
Top