From fd6b76966861d9c13f00c6696d804fa49f0bcdb6 Mon Sep 17 00:00:00 2001 From: Peter Wagner Date: Thu, 19 May 2022 07:32:26 +0100 Subject: [PATCH] * Fix fallout from #551 --- .../Krypton.Ribbon/Controls Visuals/KeyTipControl.cs | 4 +++- .../Krypton.Toolkit/Controls Toolkit/KryptonForm.cs | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Krypton Components/Krypton.Ribbon/Controls Visuals/KeyTipControl.cs b/Source/Krypton Components/Krypton.Ribbon/Controls Visuals/KeyTipControl.cs index 9c22a9f9d..f24569122 100644 --- a/Source/Krypton Components/Krypton.Ribbon/Controls Visuals/KeyTipControl.cs +++ b/Source/Krypton Components/Krypton.Ribbon/Controls Visuals/KeyTipControl.cs @@ -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) { diff --git a/Source/Krypton Components/Krypton.Toolkit/Controls Toolkit/KryptonForm.cs b/Source/Krypton Components/Krypton.Toolkit/Controls Toolkit/KryptonForm.cs index 40df265fc..6ceb318a8 100644 --- a/Source/Krypton Components/Krypton.Toolkit/Controls Toolkit/KryptonForm.cs +++ b/Source/Krypton Components/Krypton.Toolkit/Controls Toolkit/KryptonForm.cs @@ -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 } /// @@ -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) //{