Skip to content

Commit

Permalink
Merge pull request #714 from Krypton-Suite/vn-OI#551
Browse files Browse the repository at this point in the history
* Fix fallout from #551
  • Loading branch information
Smurf-IV committed May 19, 2022
2 parents ee4a4a9 + fd6b769 commit 52504ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -44,8 +44,10 @@ internal class KeyTipControl : KryptonForm
FormBorderStyle = FormBorderStyle.None;
ShowInTaskbar = false;
TransparencyKey = Color.Magenta;
#pragma warning disable CS0618 // Type or member is obsolete
UseDropShadow = false;

#pragma warning restore CS0618 // Type or member is obsolete

// Disabled key tips are show semi-transparent
if (_showDisabled)
{
Expand Down
Expand Up @@ -193,7 +193,9 @@ public KryptonForm()
CornerRoundingRadius = GlobalStaticValues.PRIMARY_CORNER_ROUNDING_VALUE;

// Disable 'UseDropShadow' on creation
#pragma warning disable CS0618
UseDropShadow = false;
#pragma warning restore CS0618
}

/// <summary>
Expand Down Expand Up @@ -1771,10 +1773,12 @@ protected override CreateParams CreateParams
// a drop shadow around the form
CreateParams cp = base.CreateParams;

#pragma warning disable CS0618 // Type or member is obsolete
if (UseDropShadow)
{
cp.ClassStyle |= CS_DROPSHADOW;
}
#pragma warning restore CS0618 // Type or member is obsolete

//if (DisableCloseButton)
//{
Expand Down

0 comments on commit 52504ec

Please sign in to comment.