title: C# winforms- MouseWheel event not firing because of control properties
body: <p>I have quite a problem with the mouse wheel event. I've tried to find any sort of references to it but always found answers to different topics on the matter. I have made a mouse-wheel event for the entire form (which is also fullscreen, but it should work regardless on where the mouse is)-<code>MouseWheel+=ChangeLength;</code> (or <code>MouseWheel += new MouseEventHandler(ChangeLength);</code>, it doesn't matter) and put a breakpoint on the first line of it, just to see if it works.</p>
  
  <p>It didn't.</p>
  
  <p>I opened a blank project to test it out and surprisingly, it did! I then looked for the source of the problem and found out that only two lines in the designer make the difference between successfully firing the event, and not firing at all. The two lines were-</p>
  
  <pre><code> this.rater.TabIndex = 15;
   this.rater.Visible = false;
  </code></pre>
  
  <p>If any of these lines were uncommented, nothing happened when scrolling the mouse wheel, but if both were deleted or commented, it worked just fine. Using <code>Focus()</code>, clicking on the screen, changing the properties outside the designer and other known methods didn't help.</p>
  
  <p>I need to add that <code>rater</code> is <em>not</em> just a regular control, and this is probably the source for this weird problem. It is a custom control called <a href="http://www.codeproject.com/Articles/26576/ShaperRater-A-Rating-Control" rel="nofollow">ShapeRater</a>. I really don't understand why and how the <code>Visible</code> and <code>TabIndex</code> properties cause it, they're completely unrelated! Also, I deleted one of the raters(which caused the problem), because the other one was fine, but once deleted, the previously OK one started causing this instead.</p>
  
  <p>Does anybody have any idea why this is happening and how to fix it? </p>
  
  <hr>
  
  <p>Thanks in advanced and sorry if I wasn't writing accurately enough. This is my first question on this site.</p>