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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top