private void UpdateUpDown()
 {
     if (this.ShowUpDown)
     {
         EnumChildren wrapper = new EnumChildren();
         System.Windows.Forms.NativeMethods.EnumChildrenCallback lpEnumFunc = new System.Windows.Forms.NativeMethods.EnumChildrenCallback(wrapper.enumChildren);
         System.Windows.Forms.UnsafeNativeMethods.EnumChildWindows(new HandleRef(this, base.Handle), lpEnumFunc, System.Windows.Forms.NativeMethods.NullHandleRef);
         if (wrapper.hwndFound != IntPtr.Zero)
         {
             System.Windows.Forms.SafeNativeMethods.InvalidateRect(new HandleRef(wrapper, wrapper.hwndFound), (System.Windows.Forms.NativeMethods.COMRECT)null, true);
             System.Windows.Forms.SafeNativeMethods.UpdateWindow(new HandleRef(wrapper, wrapper.hwndFound));
         }
     }
 }
 private void UpdateUpDown()
 {
     if (this.ShowUpDown)
     {
         EnumChildren wrapper = new EnumChildren();
         System.Windows.Forms.NativeMethods.EnumChildrenCallback lpEnumFunc = new System.Windows.Forms.NativeMethods.EnumChildrenCallback(wrapper.enumChildren);
         System.Windows.Forms.UnsafeNativeMethods.EnumChildWindows(new HandleRef(this, base.Handle), lpEnumFunc, System.Windows.Forms.NativeMethods.NullHandleRef);
         if (wrapper.hwndFound != IntPtr.Zero)
         {
             System.Windows.Forms.SafeNativeMethods.InvalidateRect(new HandleRef(wrapper, wrapper.hwndFound), (System.Windows.Forms.NativeMethods.COMRECT) null, true);
             System.Windows.Forms.SafeNativeMethods.UpdateWindow(new HandleRef(wrapper, wrapper.hwndFound));
         }
     }
 }