diff --git a/WIndows.Forms/Controls/CustomDrawBase.cs b/WIndows.Forms/Controls/CustomDrawBase.cs
index 89b0f401..50b121fa 100644
--- a/WIndows.Forms/Controls/CustomDrawBase.cs
+++ b/WIndows.Forms/Controls/CustomDrawBase.cs
@@ -148,8 +148,8 @@ namespace Vanara.Windows.Forms
get => textImageRelation; set => SetField(ref textImageRelation, value, nameof(TextImageRelation));
}
- /// Gets or sets a value indicating whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control.
- /// true if the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control; otherwise, false. The default is true.
+ /// Gets or sets a value indicating whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control.
+ /// true if the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control; otherwise, false. The default is true.
[DefaultValue(true), Description(""), Category("Appearance")]
public bool UseMnemonic
{
diff --git a/WIndows.Forms/Controls/DisabledItemComboBox.cs b/WIndows.Forms/Controls/DisabledItemComboBox.cs
index b2dbc145..f59f0a35 100644
--- a/WIndows.Forms/Controls/DisabledItemComboBox.cs
+++ b/WIndows.Forms/Controls/DisabledItemComboBox.cs
@@ -265,7 +265,7 @@ namespace Vanara.Windows.Forms
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
- BufferedPaint.PaintAnimation(e.Graphics, this, ClientRectangle, PaintControl, currentState, Enabled ? newState : ComboBoxState.Disabled, (a,b) => vsr.GetTransitionDuration((int)a, (int)b));
+ BufferedPaint.PaintAnimation(e.Graphics, this, ClientRectangle, PaintControl, currentState, Enabled ? newState : ComboBoxState.Disabled, (a,b) => (int)vsr.GetTransitionDuration((int)a, (int)b));
}
///
diff --git a/WIndows.Forms/Drawing/BufferedPaint.cs b/WIndows.Forms/Drawing/BufferedPaint.cs
index ffb05918..c594eb77 100644
--- a/WIndows.Forms/Drawing/BufferedPaint.cs
+++ b/WIndows.Forms/Drawing/BufferedPaint.cs
@@ -16,7 +16,7 @@ namespace Vanara.Drawing
static BufferedPaint() { BufferedPaintInit(); }
- public delegate uint GetDuration(TState oldState, TState newState);
+ public delegate int GetDuration(TState oldState, TState newState);
public delegate void PaintAction(Graphics graphics, Rectangle bounds, TState currentState, TParam data);