From b01d2b7c551ec9d29e506bd9fc1767b426823ad6 Mon Sep 17 00:00:00 2001 From: Ben Olden-Cooligan Date: Sun, 10 Dec 2023 18:15:08 -0800 Subject: [PATCH] WinForms: Show icon when set in Dialog --- src/Eto.WinForms/Forms/WindowHandler.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Eto.WinForms/Forms/WindowHandler.cs b/src/Eto.WinForms/Forms/WindowHandler.cs index 152a67bcf3..9373fe8563 100755 --- a/src/Eto.WinForms/Forms/WindowHandler.cs +++ b/src/Eto.WinForms/Forms/WindowHandler.cs @@ -457,6 +457,11 @@ public Icon Icon { icon = value; Control.Icon = ((IWindowsIconSource)icon.Handler).GetIcon(); + if (!Control.ShowIcon) + { + // For dialogs we don't show an icon by default and need to enable it here + Control.ShowIcon = true; + } } }