From 8e786da6503b2348cb7b062938fac216f6317b73 Mon Sep 17 00:00:00 2001 From: ZiAD Date: Fri, 10 May 2024 17:02:46 +0400 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 884c142..c4e5033 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,21 @@ using static WinBlur.UI; SetBlurStyle(frm: this, blurType: BlurType.Acrylic, designMode: Mode.DarkMode, showWindowsTitle: true); ``` +If **you are** using the `None` FormBorderStyle, then create the `Form_Load` event, or head over to the form constructor and add the following code: + +```cs + +// cntrl: The form/control you are targetting. +// blurType: The blur type for the form/control. +// designMode: The design mode (or style) for the form/control. + +// this.BackColor = Color.Black; +// The code on top is recommended, but is not necessary. +// In case the code below doesn't work by itself, please change the control/form BackColor to Black/White. + +SetBlurStyle(frm: this, blurType: BlurType.Acrylic, designMode: Mode.DarkMode, showWindowsTitle: false); +``` + - ⚠️**WARNING:** If **you are** using the `None` FormBorderStyle, then create the `Form_Shown` event instead, and add the same code that is shown on top of this text. - 📝**NOTE:** Using **WinBlur on Controls** is currently most likely not going to work, so this mainly just supports **Forms** right now.