/// <summary>
 /// Releases the unmanaged resources used by the <see cref="T:System.Windows.Forms.ComboBox" /> and optionally releases the managed resources.
 /// </summary>
 /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
 protected override void Dispose(bool disposing)
 {
     if (animationsNeedCleanup)
     {
         NativeMethods.BufferedPaintUnInit();
         animationsNeedCleanup = false;
     }
     base.Dispose(disposing);
 }