From 022b43f1a140f32c9388b5200c88e6c041bb0d3d Mon Sep 17 00:00:00 2001 From: Smurf-iv Date: Sun, 11 Dec 2022 16:36:02 +0000 Subject: [PATCH] - Add in new `KryptonMessageBoxButtons` type that emualtes the .net6 `MessageBoxButtons` - Fix fallout for the new dialogResult type - Fix Help button not being shown - Add missing `private` monikers - Fix usage of controls in the KryptonMessageBox demo - Remove some usages of .net 5 - Remove some compile warnings / messages from Example projects #https://github.com/Krypton-Suite/Standard-Toolkit/issues/867 #https://github.com/Krypton-Suite/Standard-Toolkit/issues/728) --- .../ButtonSpec Playground/Program.cs | 4 +- .../Child Control Stack/Program.cs | 4 +- .../Custom Control using Palettes/Program.cs | 4 +- .../Custom Control using Renderers/Program.cs | 4 +- .../Program.cs | 4 +- .../Program.cs | 4 +- .../Expanding HeaderGroups (Stack)/Program.cs | 4 +- .../Input Form/Program.cs | 4 +- .../Krypton Scrollbars/Program.cs | 4 +- .../Krypton Theme Playground/Form1.cs | 5 +- .../Krypton Theme Playground/Program.cs | 4 +- .../Krypton Theme Selector/Form1.cs | 5 +- .../Krypton Theme Selector/Program.cs | 2 +- .../Krypton UAC Button/Form1.Designer.cs | 1 - .../Krypton UAC Button/Form1.cs | 18 +- .../Krypton UAC Button/Program.cs | 4 +- .../KryptonBorderEdge Examples/Program.cs | 4 +- .../KryptonBreadCrumb Examples/Program.cs | 4 +- .../KryptonButton Examples 2022.csproj | 2 +- .../KryptonButton Examples/Program.cs | 4 +- .../KryptonCheckBox Examples/Program.cs | 4 +- .../KryptonCheckButton Examples/Program.cs | 4 +- .../KryptonCheckSet Examples/Program.cs | 4 +- .../KryptonCheckedListBox Examples/Program.cs | 4 +- .../KryptonColorButton Examples/Form1.cs | 2 +- .../KryptonColorButton Examples/Program.cs | 4 +- .../KryptonColorDialog Example/Program.cs | 4 +- .../KryptonComboBox Examples/Form1.cs | 3 +- .../KryptonComboBox Examples/Program.cs | 4 +- .../KryptonCommand Examples/Program.cs | 4 +- .../KryptonContextMenu Examples/Program.cs | 4 +- .../KryptonDataGridView Examples/Program.cs | 4 +- .../KryptonDateTimePicker Examples/Program.cs | 4 +- .../KryptonDomainUpDown Examples/Program.cs | 4 +- .../KryptonDropButton Examples/Program.cs | 4 +- .../KryptonFontDialog Example/Program.cs | 4 +- .../KryptonForm Examples/Program.cs | 4 +- .../KryptonGroup Examples/Program.cs | 4 +- .../KryptonGroupBox Examples/Program.cs | 4 +- .../KryptonHeader Examples/Program.cs | 4 +- .../KryptonHeaderGroup Examples/Program.cs | 4 +- .../KryptonHelpIcon Examples/Form1.cs | 2 +- .../KryptonHelpIcon Examples/Program.cs | 4 +- .../KryptonInputBox Examples/Program.cs | 4 +- .../KryptonLabel Examples/Program.cs | 4 +- .../KryptonLinkLabel Examples/Program.cs | 4 +- .../KryptonListBox Examples/Form1.cs | 13 +- .../KryptonListBox Examples/Program.cs | 4 +- .../KryptonListView Examples/Form1.cs | 3 +- .../KryptonListView Examples/Program.cs | 4 +- .../KryptonMaskedTextBox Examples/Program.cs | 4 +- .../Form1.Designer.cs | 368 +++++------------- .../KryptonMessageBox Examples/Form1.cs | 152 ++++---- .../KryptonMessageBox Examples/Program.cs | 4 +- .../KryptonMonthCalendar Examples/Program.cs | 4 +- .../KryptonNumericUpDown Examples/Program.cs | 4 +- .../KryptonPalette Examples/Program.cs | 4 +- .../KryptonPanel Examples/Program.cs | 4 +- .../KryptonPrintDialog Example/Program.cs | 4 +- .../KryptonRadioButton Examples/Program.cs | 4 +- .../KryptonRichTextBox Examples/Program.cs | 4 +- .../KryptonScrollbar Examples/Program.cs | 4 +- .../KryptonSeparator Examples/Program.cs | 4 +- .../KryptonSplitContainer Examples/Program.cs | 4 +- .../Form1.cs | 13 +- .../Program.cs | 2 +- .../Program.cs | 4 +- .../KryptonTaskDialog Examples/Program.cs | 4 +- .../KryptonTextBox Examples/Program.cs | 4 +- .../KryptonTrackBar Examples/Program.cs | 4 +- .../KryptonTreeView Examples/Program.cs | 4 +- .../KryptonWebBrowser Example/Program.cs | 4 +- .../KryptonWrapLabel Examples/Program.cs | 4 +- .../MDI Application/Form1.cs | 5 +- .../MDI Application/Program.cs | 4 +- .../SystemThemedForms/Program.cs | 4 +- .../Test Clip Base/Program.cs | 4 +- .../Test Clip Base/Test Clip Base 2022.csproj | 2 +- .../Test Combo Domain Numeric/Program.cs | 4 +- .../Test MessageBox Clipping/Form1.cs | 4 +- .../Test MessageBox Clipping/Program.cs | 4 +- .../Test Text Clipping/Program.cs | 4 +- .../Three Pane Application (Basic)/Program.cs | 4 +- .../Program.cs | 4 +- 84 files changed, 347 insertions(+), 519 deletions(-) diff --git a/Source/Krypton Toolkit Examples/ButtonSpec Playground/Program.cs b/Source/Krypton Toolkit Examples/ButtonSpec Playground/Program.cs index cf9e93d4..90b712cd 100644 --- a/Source/Krypton Toolkit Examples/ButtonSpec Playground/Program.cs +++ b/Source/Krypton Toolkit Examples/ButtonSpec Playground/Program.cs @@ -15,13 +15,13 @@ namespace ButtonSpecPlayground { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Child Control Stack/Program.cs b/Source/Krypton Toolkit Examples/Child Control Stack/Program.cs index 733fcf3c..dbfa0510 100644 --- a/Source/Krypton Toolkit Examples/Child Control Stack/Program.cs +++ b/Source/Krypton Toolkit Examples/Child Control Stack/Program.cs @@ -15,13 +15,13 @@ namespace ChildControlStack { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Custom Control using Palettes/Program.cs b/Source/Krypton Toolkit Examples/Custom Control using Palettes/Program.cs index ebd66150..88649eda 100644 --- a/Source/Krypton Toolkit Examples/Custom Control using Palettes/Program.cs +++ b/Source/Krypton Toolkit Examples/Custom Control using Palettes/Program.cs @@ -15,13 +15,13 @@ namespace CustomControlUsingPalettes { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Custom Control using Renderers/Program.cs b/Source/Krypton Toolkit Examples/Custom Control using Renderers/Program.cs index f6501eac..07445c07 100644 --- a/Source/Krypton Toolkit Examples/Custom Control using Renderers/Program.cs +++ b/Source/Krypton Toolkit Examples/Custom Control using Renderers/Program.cs @@ -15,13 +15,13 @@ namespace CustomControlUsingRenderers { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Expanding HeaderGroups (DockStyle)/Program.cs b/Source/Krypton Toolkit Examples/Expanding HeaderGroups (DockStyle)/Program.cs index 47dc2ce8..6bf7e960 100644 --- a/Source/Krypton Toolkit Examples/Expanding HeaderGroups (DockStyle)/Program.cs +++ b/Source/Krypton Toolkit Examples/Expanding HeaderGroups (DockStyle)/Program.cs @@ -15,13 +15,13 @@ namespace ExpandingHeaderGroupsDockStyle { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Expanding HeaderGroups (Splitters)/Program.cs b/Source/Krypton Toolkit Examples/Expanding HeaderGroups (Splitters)/Program.cs index 4436c3fb..34a1854f 100644 --- a/Source/Krypton Toolkit Examples/Expanding HeaderGroups (Splitters)/Program.cs +++ b/Source/Krypton Toolkit Examples/Expanding HeaderGroups (Splitters)/Program.cs @@ -15,13 +15,13 @@ namespace ExpandingHeaderGroupsSplitters { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Expanding HeaderGroups (Stack)/Program.cs b/Source/Krypton Toolkit Examples/Expanding HeaderGroups (Stack)/Program.cs index 8e11ae6c..a2d71943 100644 --- a/Source/Krypton Toolkit Examples/Expanding HeaderGroups (Stack)/Program.cs +++ b/Source/Krypton Toolkit Examples/Expanding HeaderGroups (Stack)/Program.cs @@ -15,13 +15,13 @@ namespace ExpandingHeaderGroupsStack { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Input Form/Program.cs b/Source/Krypton Toolkit Examples/Input Form/Program.cs index d319e0c2..11e54b44 100644 --- a/Source/Krypton Toolkit Examples/Input Form/Program.cs +++ b/Source/Krypton Toolkit Examples/Input Form/Program.cs @@ -15,13 +15,13 @@ namespace InputForm { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Krypton Scrollbars/Program.cs b/Source/Krypton Toolkit Examples/Krypton Scrollbars/Program.cs index fbbb54d5..ea54d22d 100644 --- a/Source/Krypton Toolkit Examples/Krypton Scrollbars/Program.cs +++ b/Source/Krypton Toolkit Examples/Krypton Scrollbars/Program.cs @@ -3,13 +3,13 @@ namespace KryptonScrollBars { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Krypton Theme Playground/Form1.cs b/Source/Krypton Toolkit Examples/Krypton Theme Playground/Form1.cs index 638ba7a1..9539a474 100644 --- a/Source/Krypton Toolkit Examples/Krypton Theme Playground/Form1.cs +++ b/Source/Krypton Toolkit Examples/Krypton Theme Playground/Form1.cs @@ -13,9 +13,6 @@ private void Form1_Load(object sender, EventArgs e) } - private void kryptonCheckedListBox1_SelectedIndexChanged(object sender, EventArgs e) - { - kpg.SelectedObject = kryptonCheckedListBox1; - } + private void kryptonCheckedListBox1_SelectedIndexChanged(object sender, EventArgs e) => kpg.SelectedObject = kryptonCheckedListBox1; } } diff --git a/Source/Krypton Toolkit Examples/Krypton Theme Playground/Program.cs b/Source/Krypton Toolkit Examples/Krypton Theme Playground/Program.cs index 8c0fa5e6..52be8f06 100644 --- a/Source/Krypton Toolkit Examples/Krypton Theme Playground/Program.cs +++ b/Source/Krypton Toolkit Examples/Krypton Theme Playground/Program.cs @@ -3,13 +3,13 @@ namespace KryptonThemePlayground { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.cs b/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.cs index d73e84af..8a6ad146 100644 --- a/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.cs +++ b/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.cs @@ -4,9 +4,6 @@ namespace KryptonThemeSelector { public partial class Form1 : KryptonForm { - public Form1() - { - InitializeComponent(); - } + public Form1() => InitializeComponent(); } } \ No newline at end of file diff --git a/Source/Krypton Toolkit Examples/Krypton Theme Selector/Program.cs b/Source/Krypton Toolkit Examples/Krypton Theme Selector/Program.cs index 46487ac6..d94171a7 100644 --- a/Source/Krypton Toolkit Examples/Krypton Theme Selector/Program.cs +++ b/Source/Krypton Toolkit Examples/Krypton Theme Selector/Program.cs @@ -9,7 +9,7 @@ internal static class Program /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Krypton UAC Button/Form1.Designer.cs b/Source/Krypton Toolkit Examples/Krypton UAC Button/Form1.Designer.cs index 49692ac4..b30b97d7 100644 --- a/Source/Krypton Toolkit Examples/Krypton UAC Button/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/Krypton UAC Button/Form1.Designer.cs @@ -77,7 +77,6 @@ private void InitializeComponent() this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Krypton UAC Demo"; - this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); diff --git a/Source/Krypton Toolkit Examples/Krypton UAC Button/Form1.cs b/Source/Krypton Toolkit Examples/Krypton UAC Button/Form1.cs index 0357c0c0..78c2f56b 100644 --- a/Source/Krypton Toolkit Examples/Krypton UAC Button/Form1.cs +++ b/Source/Krypton Toolkit Examples/Krypton UAC Button/Form1.cs @@ -1,5 +1,4 @@ using System; -using System.Windows.Forms; using Krypton.Toolkit; @@ -9,19 +8,10 @@ public partial class Form1 : KryptonForm { public Form1() => InitializeComponent(); - private void Form1_Load(object sender, EventArgs e) - { + private void kchkShowUACShield_CheckedChanged(object sender, EventArgs e) => kbtnTest.UseAsUACElevationButton = kchkShowUACShield.Checked; - } - - private void kchkShowUACShield_CheckedChanged(object sender, EventArgs e) - { - kbtnTest.UseAsUACElevationButton = kchkShowUACShield.Checked; - } - - private void kbtnTest_Click(object sender, EventArgs e) - { - KryptonMessageBox.Show("UAC elevation requires developer input.", "UAC Button Example", MessageBoxButtons.OK, KryptonMessageBoxIcon.Shield); - } + private void kbtnTest_Click(object sender, EventArgs e) => + KryptonMessageBox.Show("UAC elevation requires developer input.", "UAC Button Example", + KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Shield); } } diff --git a/Source/Krypton Toolkit Examples/Krypton UAC Button/Program.cs b/Source/Krypton Toolkit Examples/Krypton UAC Button/Program.cs index c5e36c47..13940d38 100644 --- a/Source/Krypton Toolkit Examples/Krypton UAC Button/Program.cs +++ b/Source/Krypton Toolkit Examples/Krypton UAC Button/Program.cs @@ -3,13 +3,13 @@ namespace KryptonUACButton { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonBorderEdge Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonBorderEdge Examples/Program.cs index 46e9847d..cf7353b6 100644 --- a/Source/Krypton Toolkit Examples/KryptonBorderEdge Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonBorderEdge Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonBorderEdgeExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonBreadCrumb Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonBreadCrumb Examples/Program.cs index 97c5e230..b16cbd83 100644 --- a/Source/Krypton Toolkit Examples/KryptonBreadCrumb Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonBreadCrumb Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonBreadCrumbExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonButton Examples/KryptonButton Examples 2022.csproj b/Source/Krypton Toolkit Examples/KryptonButton Examples/KryptonButton Examples 2022.csproj index 9cfdc9f8..e5c8d02c 100644 --- a/Source/Krypton Toolkit Examples/KryptonButton Examples/KryptonButton Examples 2022.csproj +++ b/Source/Krypton Toolkit Examples/KryptonButton Examples/KryptonButton Examples 2022.csproj @@ -1,7 +1,7 @@  - net5.0-windows + net6.0-windows WinExe KryptonButtonExamples Krypton Button Examples diff --git a/Source/Krypton Toolkit Examples/KryptonButton Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonButton Examples/Program.cs index cde5f2b8..ad46b510 100644 --- a/Source/Krypton Toolkit Examples/KryptonButton Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonButton Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonButtonExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonCheckBox Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonCheckBox Examples/Program.cs index 63fb0513..5e475b6d 100644 --- a/Source/Krypton Toolkit Examples/KryptonCheckBox Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonCheckBox Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonCheckBoxExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonCheckButton Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonCheckButton Examples/Program.cs index 16ece54c..8f3acedb 100644 --- a/Source/Krypton Toolkit Examples/KryptonCheckButton Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonCheckButton Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonCheckButtonExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonCheckSet Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonCheckSet Examples/Program.cs index eb5909c3..54bd4d40 100644 --- a/Source/Krypton Toolkit Examples/KryptonCheckSet Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonCheckSet Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonCheckSetExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonCheckedListBox Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonCheckedListBox Examples/Program.cs index eda06823..7937d11f 100644 --- a/Source/Krypton Toolkit Examples/KryptonCheckedListBox Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonCheckedListBox Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonCheckedListBoxExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonColorButton Examples/Form1.cs b/Source/Krypton Toolkit Examples/KryptonColorButton Examples/Form1.cs index 42af606a..ab268599 100644 --- a/Source/Krypton Toolkit Examples/KryptonColorButton Examples/Form1.cs +++ b/Source/Krypton Toolkit Examples/KryptonColorButton Examples/Form1.cs @@ -38,7 +38,7 @@ private void KryptonColorButton5_Click(object sender, EventArgs e) if (KryptonMessageBox.Show(this, @"Do you want to perform the normal colourButtonAction ?", @"Launch what you want", - MessageBoxButtons.YesNo, KryptonMessageBoxIcon.Question) == DialogResult.Yes) + KryptonMessageBoxButtons.YesNo, KryptonMessageBoxIcon.Question) == DialogResult.Yes) { kryptonColorButton5.PerformDropDown(); } diff --git a/Source/Krypton Toolkit Examples/KryptonColorButton Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonColorButton Examples/Program.cs index 880b3f3b..53bdefd5 100644 --- a/Source/Krypton Toolkit Examples/KryptonColorButton Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonColorButton Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonColorButtonExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonColorDialog Example/Program.cs b/Source/Krypton Toolkit Examples/KryptonColorDialog Example/Program.cs index 67daac76..f56543cb 100644 --- a/Source/Krypton Toolkit Examples/KryptonColorDialog Example/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonColorDialog Example/Program.cs @@ -3,13 +3,13 @@ namespace KryptonFontDialog_Example_2019 { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonComboBox Examples/Form1.cs b/Source/Krypton Toolkit Examples/KryptonComboBox Examples/Form1.cs index 9d7af90f..b975b822 100644 --- a/Source/Krypton Toolkit Examples/KryptonComboBox Examples/Form1.cs +++ b/Source/Krypton Toolkit Examples/KryptonComboBox Examples/Form1.cs @@ -65,7 +65,8 @@ private void buttonSpecAny4_Click(object sender, EventArgs e) private void kryptonComboBox1Blue_DoubleClick(object sender, EventArgs e) => InvokeDoubleClick(); private void InvokeDoubleClick() => - KryptonMessageBox.Show("You've invoked the double click event.", "Double Click", MessageBoxButtons.OK, + KryptonMessageBox.Show("You've invoked the double click event.", "Double Click", + KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information); private void kryptonComboBox2Blue_DoubleClick(object sender, EventArgs e) => InvokeDoubleClick(); diff --git a/Source/Krypton Toolkit Examples/KryptonComboBox Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonComboBox Examples/Program.cs index 9fcd6adc..9ae13b49 100644 --- a/Source/Krypton Toolkit Examples/KryptonComboBox Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonComboBox Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonComboBoxExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonCommand Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonCommand Examples/Program.cs index e3a78ab6..450f4a37 100644 --- a/Source/Krypton Toolkit Examples/KryptonCommand Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonCommand Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonCommandExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonContextMenu Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonContextMenu Examples/Program.cs index 16ce0c43..85eb87c7 100644 --- a/Source/Krypton Toolkit Examples/KryptonContextMenu Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonContextMenu Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonContextMenuExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); //Application.SetHighDpiMode(HighDpiMode.SystemAware); diff --git a/Source/Krypton Toolkit Examples/KryptonDataGridView Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonDataGridView Examples/Program.cs index 9c88e616..e5be1203 100644 --- a/Source/Krypton Toolkit Examples/KryptonDataGridView Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonDataGridView Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonDataGridViewExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Program.cs index 80b47717..3de758db 100644 --- a/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonDateTimePicker Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonDateTimePickerExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonDomainUpDown Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonDomainUpDown Examples/Program.cs index 88acc4c2..220ce44e 100644 --- a/Source/Krypton Toolkit Examples/KryptonDomainUpDown Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonDomainUpDown Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonDomainUpDownExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonDropButton Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonDropButton Examples/Program.cs index 9e5900c5..a19f61a3 100644 --- a/Source/Krypton Toolkit Examples/KryptonDropButton Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonDropButton Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonDropButtonExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonFontDialog Example/Program.cs b/Source/Krypton Toolkit Examples/KryptonFontDialog Example/Program.cs index 67daac76..f56543cb 100644 --- a/Source/Krypton Toolkit Examples/KryptonFontDialog Example/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonFontDialog Example/Program.cs @@ -3,13 +3,13 @@ namespace KryptonFontDialog_Example_2019 { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonForm Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonForm Examples/Program.cs index 2992a5bc..01e044e9 100644 --- a/Source/Krypton Toolkit Examples/KryptonForm Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonForm Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonFormExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonGroup Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonGroup Examples/Program.cs index 6b169ac7..1b2630c7 100644 --- a/Source/Krypton Toolkit Examples/KryptonGroup Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonGroup Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonGroupExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonGroupBox Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonGroupBox Examples/Program.cs index 1091b4a8..cade7e19 100644 --- a/Source/Krypton Toolkit Examples/KryptonGroupBox Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonGroupBox Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonGroupBoxExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonHeader Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonHeader Examples/Program.cs index b838cd7d..15df1828 100644 --- a/Source/Krypton Toolkit Examples/KryptonHeader Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonHeader Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonHeaderExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonHeaderGroup Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonHeaderGroup Examples/Program.cs index ea4c07bf..f35aa865 100644 --- a/Source/Krypton Toolkit Examples/KryptonHeaderGroup Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonHeaderGroup Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonHeaderGroupExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonHelpIcon Examples/Form1.cs b/Source/Krypton Toolkit Examples/KryptonHelpIcon Examples/Form1.cs index 4e0a41da..2602ffe0 100644 --- a/Source/Krypton Toolkit Examples/KryptonHelpIcon Examples/Form1.cs +++ b/Source/Krypton Toolkit Examples/KryptonHelpIcon Examples/Form1.cs @@ -16,7 +16,7 @@ public Form1() private void BsHelpIcon_Click(object sender, EventArgs e) => KryptonMessageBox.Show("You have requested help... Please enter your code here.", "Help Demo", - MessageBoxButtons.OK, KryptonMessageBoxIcon.Information); + KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information); private void Form1_Load(object sender, EventArgs e) => palette365Blue.Checked = true; diff --git a/Source/Krypton Toolkit Examples/KryptonHelpIcon Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonHelpIcon Examples/Program.cs index 00f55ca8..cfd0e03b 100644 --- a/Source/Krypton Toolkit Examples/KryptonHelpIcon Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonHelpIcon Examples/Program.cs @@ -3,13 +3,13 @@ namespace KryptonHelpIconExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonInputBox Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonInputBox Examples/Program.cs index d4dfe92b..b96156c8 100644 --- a/Source/Krypton Toolkit Examples/KryptonInputBox Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonInputBox Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonInputBoxExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonLabel Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonLabel Examples/Program.cs index a882ab47..7cdc72cd 100644 --- a/Source/Krypton Toolkit Examples/KryptonLabel Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonLabel Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonLabelExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonLinkLabel Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonLinkLabel Examples/Program.cs index 7795b865..b98d0b47 100644 --- a/Source/Krypton Toolkit Examples/KryptonLinkLabel Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonLinkLabel Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonLinkLabelExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonListBox Examples/Form1.cs b/Source/Krypton Toolkit Examples/KryptonListBox Examples/Form1.cs index 8e81c2af..283ffdae 100644 --- a/Source/Krypton Toolkit Examples/KryptonListBox Examples/Form1.cs +++ b/Source/Krypton Toolkit Examples/KryptonListBox Examples/Form1.cs @@ -12,6 +12,7 @@ using System; using System.Windows.Forms; + using Krypton.Toolkit; namespace KryptonListBoxExamples @@ -19,7 +20,7 @@ namespace KryptonListBoxExamples public partial class Form1 : Form { private int _next = 1; - private Random _rand = new Random(); + private Random _rand = new(); public Form1() => InitializeComponent(); @@ -40,8 +41,7 @@ private void Form1_Load(object sender, EventArgs e) private object CreateNewItem() { - KryptonListItem item = new KryptonListItem - { + KryptonListItem item = new KryptonListItem { ShortText = $"Item {(_next++)}", LongText = $"({_rand.Next(Int32.MaxValue)})", Image = imageList.Images[_rand.Next(imageList.Images.Count - 1)] @@ -122,10 +122,9 @@ private void kryptonCheckSet_CheckedButtonChanged(object sender, EventArgs e) private void buttonClose_Click(object sender, EventArgs e) => Close(); - private void kryptonListBox_DoubleClick(object sender, EventArgs e) - { - KryptonMessageBox.Show("You've invoked the double click event.", "Double Click", MessageBoxButtons.OK, + private void kryptonListBox_DoubleClick(object sender, EventArgs e) => + KryptonMessageBox.Show("You've invoked the double click event.", "Double Click", + KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Information); - } } } diff --git a/Source/Krypton Toolkit Examples/KryptonListBox Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonListBox Examples/Program.cs index 37563ab3..99a730fb 100644 --- a/Source/Krypton Toolkit Examples/KryptonListBox Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonListBox Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonListBoxExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonListView Examples/Form1.cs b/Source/Krypton Toolkit Examples/KryptonListView Examples/Form1.cs index 2605d5b1..c11e23d2 100644 --- a/Source/Krypton Toolkit Examples/KryptonListView Examples/Form1.cs +++ b/Source/Krypton Toolkit Examples/KryptonListView Examples/Form1.cs @@ -58,7 +58,8 @@ private void ViewTypeChanged(object sender, System.EventArgs e) } catch (Exception exception) { - KryptonMessageBox.Show(this, exception.Message, @"Not Supported", MessageBoxButtons.OK, KryptonMessageBoxIcon.Warning); + KryptonMessageBox.Show(this, exception.Message, @"Not Supported", + KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Warning); } } diff --git a/Source/Krypton Toolkit Examples/KryptonListView Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonListView Examples/Program.cs index 1927308d..7b2b14ed 100644 --- a/Source/Krypton Toolkit Examples/KryptonListView Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonListView Examples/Program.cs @@ -9,13 +9,13 @@ namespace KryptonListViewExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { //Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.EnableVisualStyles(); diff --git a/Source/Krypton Toolkit Examples/KryptonMaskedTextBox Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonMaskedTextBox Examples/Program.cs index c59a2595..145f9ccb 100644 --- a/Source/Krypton Toolkit Examples/KryptonMaskedTextBox Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonMaskedTextBox Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonMaskedTextBoxExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Form1.Designer.cs b/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Form1.Designer.cs index 465c8d84..efe6bd7b 100644 --- a/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Form1.Designer.cs @@ -51,25 +51,12 @@ private void InitializeComponent() this.kradOKCancel = new Krypton.Toolkit.KryptonRadioButton(); this.kbtnShow = new Krypton.Toolkit.KryptonButton(); this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); - this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox(); + this.kryptonThemeComboBox1 = new Krypton.Toolkit.KryptonThemeComboBox(); this.kchkRtlReading = new Krypton.Toolkit.KryptonCheckBox(); this.kchkRightAlign = new Krypton.Toolkit.KryptonCheckBox(); this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel(); - this.kradOffice2007Blue = new Krypton.Toolkit.KryptonRadioButton(); - this.kradOffice2007Black = new Krypton.Toolkit.KryptonRadioButton(); - this.kradOffice2007Silver = new Krypton.Toolkit.KryptonRadioButton(); - this.kradOffice2010Blue = new Krypton.Toolkit.KryptonRadioButton(); - this.kradOffice2010Black = new Krypton.Toolkit.KryptonRadioButton(); - this.kradOffice2010Silver = new Krypton.Toolkit.KryptonRadioButton(); - this.kradOffice2013 = new Krypton.Toolkit.KryptonRadioButton(); - this.kradOffice365Blue = new Krypton.Toolkit.KryptonRadioButton(); - this.kradOffice365Black = new Krypton.Toolkit.KryptonRadioButton(); - this.kradOffice365Silver = new Krypton.Toolkit.KryptonRadioButton(); - this.kradSparkleBlue = new Krypton.Toolkit.KryptonRadioButton(); - this.kradSparkleOrange = new Krypton.Toolkit.KryptonRadioButton(); - this.kradSparklePurple = new Krypton.Toolkit.KryptonRadioButton(); - this.kradOffice2003 = new Krypton.Toolkit.KryptonRadioButton(); - this.kradSystem = new Krypton.Toolkit.KryptonRadioButton(); + this.rbShield = new Krypton.Toolkit.KryptonRadioButton(); + this.chkShowHelp = new Krypton.Toolkit.KryptonCheckBox(); ((System.ComponentModel.ISupportInitialize)(this.groupBoxIcon)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupBoxIcon.Panel)).BeginInit(); this.groupBoxIcon.Panel.SuspendLayout(); @@ -80,26 +67,24 @@ private void InitializeComponent() this.kryptonGroupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit(); - this.kryptonGroupBox2.Panel.SuspendLayout(); - this.kryptonGroupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.kryptonThemeComboBox1)).BeginInit(); this.SuspendLayout(); // // label1 // - this.label1.LabelStyle = Krypton.Toolkit.LabelStyle.NormalPanel; - this.label1.Location = new System.Drawing.Point(11, 21); + this.label1.Location = new System.Drawing.Point(4, 21); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(53, 20); + this.label1.Size = new System.Drawing.Size(65, 24); this.label1.TabIndex = 0; - this.label1.Values.Text = "Caption"; + this.label1.Target = this.textBoxCaption; + this.label1.Values.Text = "&Caption"; // // textBoxCaption // + this.textBoxCaption.CueHint.Padding = new System.Windows.Forms.Padding(0); this.textBoxCaption.Location = new System.Drawing.Point(70, 21); this.textBoxCaption.Name = "textBoxCaption"; - this.textBoxCaption.Size = new System.Drawing.Size(246, 23); + this.textBoxCaption.Size = new System.Drawing.Size(246, 27); this.textBoxCaption.TabIndex = 1; this.textBoxCaption.Text = "Caption"; // @@ -109,83 +94,81 @@ private void InitializeComponent() this.textBoxMessage.Multiline = true; this.textBoxMessage.Name = "textBoxMessage"; this.textBoxMessage.Size = new System.Drawing.Size(246, 112); - this.textBoxMessage.TabIndex = 3; + this.textBoxMessage.TabIndex = 2; this.textBoxMessage.Text = "This is a message box!"; // // radioButtonNone // this.radioButtonNone.Location = new System.Drawing.Point(14, 3); this.radioButtonNone.Name = "radioButtonNone"; - this.radioButtonNone.Size = new System.Drawing.Size(52, 20); + this.radioButtonNone.Size = new System.Drawing.Size(61, 24); this.radioButtonNone.TabIndex = 0; this.radioButtonNone.Tag = "0"; - this.radioButtonNone.Values.Text = "None"; + this.radioButtonNone.Values.Text = "&None"; this.radioButtonNone.CheckedChanged += new System.EventHandler(this.icon_CheckedChanged); // // groupBoxIcon // - this.groupBoxIcon.CaptionStyle = Krypton.Toolkit.LabelStyle.GroupBoxCaption; - this.groupBoxIcon.GroupBackStyle = Krypton.Toolkit.PaletteBackStyle.ControlGroupBox; - this.groupBoxIcon.GroupBorderStyle = Krypton.Toolkit.PaletteBorderStyle.ControlGroupBox; this.groupBoxIcon.Location = new System.Drawing.Point(70, 176); this.groupBoxIcon.Name = "groupBoxIcon"; // // groupBoxIcon.Panel // + this.groupBoxIcon.Panel.Controls.Add(this.rbShield); this.groupBoxIcon.Panel.Controls.Add(this.kradWinLogo); this.groupBoxIcon.Panel.Controls.Add(this.kradQuestion); this.groupBoxIcon.Panel.Controls.Add(this.kradError); this.groupBoxIcon.Panel.Controls.Add(this.kradInformation); this.groupBoxIcon.Panel.Controls.Add(this.radioButtonNone); this.groupBoxIcon.Panel.Controls.Add(this.kradWarning); - this.groupBoxIcon.Size = new System.Drawing.Size(246, 105); - this.groupBoxIcon.TabIndex = 4; + this.groupBoxIcon.Size = new System.Drawing.Size(246, 136); + this.groupBoxIcon.TabIndex = 5; this.groupBoxIcon.Values.Heading = "Icon"; // // kradWinLogo // this.kradWinLogo.Location = new System.Drawing.Point(111, 53); this.kradWinLogo.Name = "kradWinLogo"; - this.kradWinLogo.Size = new System.Drawing.Size(72, 20); - this.kradWinLogo.TabIndex = 11; - this.kradWinLogo.Values.Text = "WinLogo"; + this.kradWinLogo.Size = new System.Drawing.Size(85, 24); + this.kradWinLogo.TabIndex = 6; + this.kradWinLogo.Values.Text = "Win&Logo"; this.kradWinLogo.CheckedChanged += new System.EventHandler(this.icon_CheckedChanged); // // kradQuestion // this.kradQuestion.Location = new System.Drawing.Point(14, 53); this.kradQuestion.Name = "kradQuestion"; - this.kradQuestion.Size = new System.Drawing.Size(72, 20); - this.kradQuestion.TabIndex = 10; - this.kradQuestion.Values.Text = "Question"; + this.kradQuestion.Size = new System.Drawing.Size(85, 24); + this.kradQuestion.TabIndex = 2; + this.kradQuestion.Values.Text = "&Question"; this.kradQuestion.CheckedChanged += new System.EventHandler(this.icon_CheckedChanged); // // kradError // this.kradError.Location = new System.Drawing.Point(14, 29); this.kradError.Name = "kradError"; - this.kradError.Size = new System.Drawing.Size(49, 20); - this.kradError.TabIndex = 11; - this.kradError.Values.Text = "Error"; + this.kradError.Size = new System.Drawing.Size(56, 24); + this.kradError.TabIndex = 1; + this.kradError.Values.Text = "&Error"; this.kradError.CheckedChanged += new System.EventHandler(this.icon_CheckedChanged); // // kradInformation // - this.kradInformation.Location = new System.Drawing.Point(111, 29); + this.kradInformation.Location = new System.Drawing.Point(111, 3); this.kradInformation.Name = "kradInformation"; - this.kradInformation.Size = new System.Drawing.Size(87, 20); - this.kradInformation.TabIndex = 9; - this.kradInformation.Values.Text = "Information"; + this.kradInformation.Size = new System.Drawing.Size(104, 24); + this.kradInformation.TabIndex = 4; + this.kradInformation.Values.Text = "&Information"; this.kradInformation.CheckedChanged += new System.EventHandler(this.icon_CheckedChanged); // // kradWarning // this.kradWarning.Checked = true; - this.kradWarning.Location = new System.Drawing.Point(111, 3); + this.kradWarning.Location = new System.Drawing.Point(14, 79); this.kradWarning.Name = "kradWarning"; - this.kradWarning.Size = new System.Drawing.Size(69, 20); - this.kradWarning.TabIndex = 8; - this.kradWarning.Values.Text = "Warning"; + this.kradWarning.Size = new System.Drawing.Size(81, 24); + this.kradWarning.TabIndex = 3; + this.kradWarning.Values.Text = "&Warning"; this.kradWarning.CheckedChanged += new System.EventHandler(this.icon_CheckedChanged); // // kryptonManager @@ -194,10 +177,7 @@ private void InitializeComponent() // // kryptonGroupBox1 // - this.kryptonGroupBox1.CaptionStyle = Krypton.Toolkit.LabelStyle.GroupBoxCaption; - this.kryptonGroupBox1.GroupBackStyle = Krypton.Toolkit.PaletteBackStyle.ControlGroupBox; - this.kryptonGroupBox1.GroupBorderStyle = Krypton.Toolkit.PaletteBorderStyle.ControlGroupBox; - this.kryptonGroupBox1.Location = new System.Drawing.Point(70, 287); + this.kryptonGroupBox1.Location = new System.Drawing.Point(331, 176); this.kryptonGroupBox1.Name = "kryptonGroupBox1"; // // kryptonGroupBox1.Panel @@ -209,16 +189,16 @@ private void InitializeComponent() this.kryptonGroupBox1.Panel.Controls.Add(this.kradYesNoCancel); this.kryptonGroupBox1.Panel.Controls.Add(this.kradAbortRetryIgnore); this.kryptonGroupBox1.Panel.Controls.Add(this.kradOKCancel); - this.kryptonGroupBox1.Size = new System.Drawing.Size(246, 136); - this.kryptonGroupBox1.TabIndex = 8; + this.kryptonGroupBox1.Size = new System.Drawing.Size(331, 136); + this.kryptonGroupBox1.TabIndex = 6; this.kryptonGroupBox1.Values.Heading = "Buttons"; // // kradYesNo // - this.kradYesNo.Location = new System.Drawing.Point(111, 55); + this.kradYesNo.Location = new System.Drawing.Point(169, 55); this.kradYesNo.Name = "kradYesNo"; - this.kradYesNo.Size = new System.Drawing.Size(61, 20); - this.kradYesNo.TabIndex = 14; + this.kradYesNo.Size = new System.Drawing.Size(72, 24); + this.kradYesNo.TabIndex = 6; this.kradYesNo.Values.Text = "Yes No"; this.kradYesNo.CheckedChanged += new System.EventHandler(this.buttons_CheckedChanged); // @@ -226,11 +206,10 @@ private void InitializeComponent() // this.kradCancelTryContinue.Location = new System.Drawing.Point(14, 81); this.kradCancelTryContinue.Name = "kradCancelTryContinue"; - this.kradCancelTryContinue.Size = new System.Drawing.Size(132, 20); - this.kradCancelTryContinue.TabIndex = 15; + this.kradCancelTryContinue.Size = new System.Drawing.Size(160, 24); + this.kradCancelTryContinue.TabIndex = 3; this.kradCancelTryContinue.ToolTipValues.Description = "This option will only work if using .NET 6 or greater"; this.kradCancelTryContinue.ToolTipValues.EnableToolTips = true; - this.kradCancelTryContinue.ToolTipValues.ToolTipStyle = Krypton.Toolkit.LabelStyle.SuperTip; this.kradCancelTryContinue.Values.Text = "Cancel Try Continue"; this.kradCancelTryContinue.CheckedChanged += new System.EventHandler(this.buttons_CheckedChanged); // @@ -238,8 +217,8 @@ private void InitializeComponent() // this.kradRetryCancel.Location = new System.Drawing.Point(14, 55); this.kradRetryCancel.Name = "kradRetryCancel"; - this.kradRetryCancel.Size = new System.Drawing.Size(90, 20); - this.kradRetryCancel.TabIndex = 13; + this.kradRetryCancel.Size = new System.Drawing.Size(108, 24); + this.kradRetryCancel.TabIndex = 2; this.kradRetryCancel.Values.Text = "Retry Cancel"; this.kradRetryCancel.CheckedChanged += new System.EventHandler(this.buttons_CheckedChanged); // @@ -247,26 +226,26 @@ private void InitializeComponent() // this.kradOK.Location = new System.Drawing.Point(14, 3); this.kradOK.Name = "kradOK"; - this.kradOK.Size = new System.Drawing.Size(39, 20); - this.kradOK.TabIndex = 9; + this.kradOK.Size = new System.Drawing.Size(44, 24); + this.kradOK.TabIndex = 0; this.kradOK.Values.Text = "OK"; this.kradOK.CheckedChanged += new System.EventHandler(this.buttons_CheckedChanged); // // kradYesNoCancel // - this.kradYesNoCancel.Location = new System.Drawing.Point(111, 29); + this.kradYesNoCancel.Location = new System.Drawing.Point(169, 29); this.kradYesNoCancel.Name = "kradYesNoCancel"; - this.kradYesNoCancel.Size = new System.Drawing.Size(100, 20); - this.kradYesNoCancel.TabIndex = 12; + this.kradYesNoCancel.Size = new System.Drawing.Size(121, 24); + this.kradYesNoCancel.TabIndex = 5; this.kradYesNoCancel.Values.Text = "Yes No Cancel"; this.kradYesNoCancel.CheckedChanged += new System.EventHandler(this.buttons_CheckedChanged); // // kradAbortRetryIgnore // - this.kradAbortRetryIgnore.Location = new System.Drawing.Point(111, 3); + this.kradAbortRetryIgnore.Location = new System.Drawing.Point(169, 3); this.kradAbortRetryIgnore.Name = "kradAbortRetryIgnore"; - this.kradAbortRetryIgnore.Size = new System.Drawing.Size(124, 20); - this.kradAbortRetryIgnore.TabIndex = 10; + this.kradAbortRetryIgnore.Size = new System.Drawing.Size(151, 24); + this.kradAbortRetryIgnore.TabIndex = 4; this.kradAbortRetryIgnore.Values.Text = "Abort Retry Ignore"; this.kradAbortRetryIgnore.CheckedChanged += new System.EventHandler(this.buttons_CheckedChanged); // @@ -275,24 +254,26 @@ private void InitializeComponent() this.kradOKCancel.Checked = true; this.kradOKCancel.Location = new System.Drawing.Point(14, 29); this.kradOKCancel.Name = "kradOKCancel"; - this.kradOKCancel.Size = new System.Drawing.Size(78, 20); - this.kradOKCancel.TabIndex = 11; + this.kradOKCancel.Size = new System.Drawing.Size(93, 24); + this.kradOKCancel.TabIndex = 1; this.kradOKCancel.Values.Text = "OK Cancel"; this.kradOKCancel.CheckedChanged += new System.EventHandler(this.buttons_CheckedChanged); // // kbtnShow // this.kbtnShow.CornerRoundingRadius = -1F; - this.kbtnShow.Location = new System.Drawing.Point(70, 429); + this.kbtnShow.Location = new System.Drawing.Point(70, 328); this.kbtnShow.Name = "kbtnShow"; - this.kbtnShow.Size = new System.Drawing.Size(608, 57); - this.kbtnShow.TabIndex = 9; + this.kbtnShow.Size = new System.Drawing.Size(592, 57); + this.kbtnShow.TabIndex = 7; this.kbtnShow.Values.Text = "Show"; this.kbtnShow.Click += new System.EventHandler(this.kbtnShow_Click); // // kryptonPanel1 // - this.kryptonPanel1.Controls.Add(this.kryptonGroupBox2); + this.kryptonPanel1.Controls.Add(this.chkShowHelp); + this.kryptonPanel1.Controls.Add(this.kbtnShow); + this.kryptonPanel1.Controls.Add(this.kryptonThemeComboBox1); this.kryptonPanel1.Controls.Add(this.kchkRtlReading); this.kryptonPanel1.Controls.Add(this.kchkRightAlign); this.kryptonPanel1.Controls.Add(this.kryptonLabel1); @@ -302,190 +283,70 @@ private void InitializeComponent() this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Name = "kryptonPanel1"; - this.kryptonPanel1.Size = new System.Drawing.Size(690, 491); - this.kryptonPanel1.TabIndex = 10; - // - // kryptonGroupBox2 - // - this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.GroupBoxCaption; - this.kryptonGroupBox2.GroupBackStyle = Krypton.Toolkit.PaletteBackStyle.ControlGroupBox; - this.kryptonGroupBox2.GroupBorderStyle = Krypton.Toolkit.PaletteBorderStyle.ControlGroupBox; - this.kryptonGroupBox2.Location = new System.Drawing.Point(322, 21); - this.kryptonGroupBox2.Name = "kryptonGroupBox2"; - // - // kryptonGroupBox2.Panel - // - this.kryptonGroupBox2.Panel.Controls.Add(this.kradSystem); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice2003); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradSparklePurple); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradSparkleOrange); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradSparkleBlue); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice365Silver); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice365Black); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice365Blue); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice2013); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice2010Silver); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice2010Black); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice2010Blue); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice2007Silver); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice2007Black); - this.kryptonGroupBox2.Panel.Controls.Add(this.kradOffice2007Blue); - this.kryptonGroupBox2.Size = new System.Drawing.Size(357, 315); - this.kryptonGroupBox2.TabIndex = 16; - this.kryptonGroupBox2.Values.Heading = "Palette"; + this.kryptonPanel1.Size = new System.Drawing.Size(690, 399); + this.kryptonPanel1.TabIndex = 0; + // + // kryptonThemeComboBox1 + // + this.kryptonThemeComboBox1.CornerRoundingRadius = -1F; + this.kryptonThemeComboBox1.CueHint.Padding = new System.Windows.Forms.Padding(0); + this.kryptonThemeComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.kryptonThemeComboBox1.DropDownWidth = 340; + this.kryptonThemeComboBox1.IntegralHeight = false; + this.kryptonThemeComboBox1.Location = new System.Drawing.Point(322, 23); + this.kryptonThemeComboBox1.Name = "kryptonThemeComboBox1"; + this.kryptonThemeComboBox1.Size = new System.Drawing.Size(340, 25); + this.kryptonThemeComboBox1.StateCommon.ComboBox.Content.TextH = Krypton.Toolkit.PaletteRelativeAlign.Near; + this.kryptonThemeComboBox1.TabIndex = 2; // // kchkRtlReading // - this.kchkRtlReading.Location = new System.Drawing.Point(329, 364); + this.kchkRtlReading.Location = new System.Drawing.Point(331, 93); this.kchkRtlReading.Name = "kchkRtlReading"; - this.kchkRtlReading.Size = new System.Drawing.Size(197, 20); - this.kchkRtlReading.TabIndex = 13; + this.kchkRtlReading.Size = new System.Drawing.Size(241, 24); + this.kchkRtlReading.TabIndex = 4; this.kchkRtlReading.Values.Text = "MessageBoxOptions.RtlReading"; + this.kchkRtlReading.Click += new System.EventHandler(this.ChkRtlReading_CheckedChanged); // // kchkRightAlign // - this.kchkRightAlign.Location = new System.Drawing.Point(329, 338); + this.kchkRightAlign.Location = new System.Drawing.Point(331, 67); this.kchkRightAlign.Name = "kchkRightAlign"; - this.kchkRightAlign.Size = new System.Drawing.Size(195, 20); - this.kchkRightAlign.TabIndex = 12; + this.kchkRightAlign.Size = new System.Drawing.Size(238, 24); + this.kchkRightAlign.TabIndex = 3; this.kchkRightAlign.Values.Text = "MessageBoxOptions.RightAlign"; // // kryptonLabel1 // - this.kryptonLabel1.LabelStyle = Krypton.Toolkit.LabelStyle.NormalPanel; - this.kryptonLabel1.Location = new System.Drawing.Point(11, 52); + this.kryptonLabel1.Location = new System.Drawing.Point(3, 52); this.kryptonLabel1.Name = "kryptonLabel1"; - this.kryptonLabel1.Size = new System.Drawing.Size(59, 20); - this.kryptonLabel1.TabIndex = 11; - this.kryptonLabel1.Values.Text = "Message"; + this.kryptonLabel1.Size = new System.Drawing.Size(72, 24); + this.kryptonLabel1.TabIndex = 1; + this.kryptonLabel1.Target = this.textBoxMessage; + this.kryptonLabel1.Values.Text = "&Message"; // - // kradOffice2007Blue + // rbShield // - this.kradOffice2007Blue.Location = new System.Drawing.Point(11, 12); - this.kradOffice2007Blue.Name = "kradOffice2007Blue"; - this.kradOffice2007Blue.Size = new System.Drawing.Size(120, 20); - this.kradOffice2007Blue.TabIndex = 0; - this.kradOffice2007Blue.Values.Text = "Office 2007 - Blue"; + this.rbShield.Location = new System.Drawing.Point(111, 29); + this.rbShield.Name = "rbShield"; + this.rbShield.Size = new System.Drawing.Size(65, 24); + this.rbShield.TabIndex = 5; + this.rbShield.Values.Text = "&Shield"; + this.rbShield.CheckedChanged += new System.EventHandler(this.icon_CheckedChanged); // - // kradOffice2007Black + // chkShowHelp // - this.kradOffice2007Black.Location = new System.Drawing.Point(11, 40); - this.kradOffice2007Black.Name = "kradOffice2007Black"; - this.kradOffice2007Black.Size = new System.Drawing.Size(125, 20); - this.kradOffice2007Black.TabIndex = 1; - this.kradOffice2007Black.Values.Text = "Office 2007 - Black"; - // - // kradOffice2007Silver - // - this.kradOffice2007Silver.Location = new System.Drawing.Point(11, 68); - this.kradOffice2007Silver.Name = "kradOffice2007Silver"; - this.kradOffice2007Silver.Size = new System.Drawing.Size(126, 20); - this.kradOffice2007Silver.TabIndex = 2; - this.kradOffice2007Silver.Values.Text = "Office 2007 - Silver"; - // - // kradOffice2010Blue - // - this.kradOffice2010Blue.Checked = true; - this.kradOffice2010Blue.Location = new System.Drawing.Point(11, 96); - this.kradOffice2010Blue.Name = "kradOffice2010Blue"; - this.kradOffice2010Blue.Size = new System.Drawing.Size(120, 20); - this.kradOffice2010Blue.TabIndex = 3; - this.kradOffice2010Blue.Values.Text = "Office 2010 - Blue"; - // - // kradOffice2010Black - // - this.kradOffice2010Black.Location = new System.Drawing.Point(11, 124); - this.kradOffice2010Black.Name = "kradOffice2010Black"; - this.kradOffice2010Black.Size = new System.Drawing.Size(125, 20); - this.kradOffice2010Black.TabIndex = 4; - this.kradOffice2010Black.Values.Text = "Office 2010 - Black"; - // - // kradOffice2010Silver - // - this.kradOffice2010Silver.Location = new System.Drawing.Point(11, 152); - this.kradOffice2010Silver.Name = "kradOffice2010Silver"; - this.kradOffice2010Silver.Size = new System.Drawing.Size(126, 20); - this.kradOffice2010Silver.TabIndex = 5; - this.kradOffice2010Silver.Values.Text = "Office 2010 - Silver"; - // - // kradOffice2013 - // - this.kradOffice2013.Location = new System.Drawing.Point(11, 180); - this.kradOffice2013.Name = "kradOffice2013"; - this.kradOffice2013.Size = new System.Drawing.Size(85, 20); - this.kradOffice2013.TabIndex = 6; - this.kradOffice2013.Values.Text = "Office 2013"; - // - // kradOffice365Blue - // - this.kradOffice365Blue.Location = new System.Drawing.Point(11, 208); - this.kradOffice365Blue.Name = "kradOffice365Blue"; - this.kradOffice365Blue.Size = new System.Drawing.Size(113, 20); - this.kradOffice365Blue.TabIndex = 7; - this.kradOffice365Blue.Values.Text = "Office 365 - Blue"; - // - // kradOffice365Black - // - this.kradOffice365Black.Location = new System.Drawing.Point(11, 236); - this.kradOffice365Black.Name = "kradOffice365Black"; - this.kradOffice365Black.Size = new System.Drawing.Size(118, 20); - this.kradOffice365Black.TabIndex = 8; - this.kradOffice365Black.Values.Text = "Office 365 - Black"; - // - // kradOffice365Silver - // - this.kradOffice365Silver.Location = new System.Drawing.Point(11, 264); - this.kradOffice365Silver.Name = "kradOffice365Silver"; - this.kradOffice365Silver.Size = new System.Drawing.Size(119, 20); - this.kradOffice365Silver.TabIndex = 9; - this.kradOffice365Silver.Values.Text = "Office 365 - Silver"; - // - // kradSparkleBlue - // - this.kradSparkleBlue.Location = new System.Drawing.Point(182, 12); - this.kradSparkleBlue.Name = "kradSparkleBlue"; - this.kradSparkleBlue.Size = new System.Drawing.Size(98, 20); - this.kradSparkleBlue.TabIndex = 10; - this.kradSparkleBlue.Values.Text = "Sparkle - Blue"; - // - // kradSparkleOrange - // - this.kradSparkleOrange.Location = new System.Drawing.Point(182, 40); - this.kradSparkleOrange.Name = "kradSparkleOrange"; - this.kradSparkleOrange.Size = new System.Drawing.Size(115, 20); - this.kradSparkleOrange.TabIndex = 11; - this.kradSparkleOrange.Values.Text = "Sparkle - Orange"; - // - // kradSparklePurple - // - this.kradSparklePurple.Location = new System.Drawing.Point(182, 68); - this.kradSparklePurple.Name = "kradSparklePurple"; - this.kradSparklePurple.Size = new System.Drawing.Size(109, 20); - this.kradSparklePurple.TabIndex = 12; - this.kradSparklePurple.Values.Text = "Sparkle - Purple"; - // - // kradOffice2003 - // - this.kradOffice2003.Location = new System.Drawing.Point(182, 96); - this.kradOffice2003.Name = "kradOffice2003"; - this.kradOffice2003.Size = new System.Drawing.Size(162, 20); - this.kradOffice2003.TabIndex = 13; - this.kradOffice2003.Values.Text = "Professional - Office 2003"; - // - // kradSystem - // - this.kradSystem.Location = new System.Drawing.Point(182, 124); - this.kradSystem.Name = "kradSystem"; - this.kradSystem.Size = new System.Drawing.Size(139, 20); - this.kradSystem.TabIndex = 14; - this.kradSystem.Values.Text = "Professional - System"; + this.chkShowHelp.Location = new System.Drawing.Point(331, 123); + this.chkShowHelp.Name = "chkShowHelp"; + this.chkShowHelp.Size = new System.Drawing.Size(98, 24); + this.chkShowHelp.TabIndex = 8; + this.chkShowHelp.Values.Text = "Show &Help"; // // Form1 // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(690, 491); - this.Controls.Add(this.kbtnShow); + this.ClientSize = new System.Drawing.Size(690, 399); this.Controls.Add(this.textBoxMessage); this.Controls.Add(this.textBoxCaption); this.Controls.Add(this.kryptonPanel1); @@ -494,8 +355,8 @@ private void InitializeComponent() this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Form1"; - this.Opacity = 0.8D; this.Text = "KryptonMessageBox Examples"; + this.Click += new System.EventHandler(this.ChkRightAlign_CheckedChanged); ((System.ComponentModel.ISupportInitialize)(this.groupBoxIcon.Panel)).EndInit(); this.groupBoxIcon.Panel.ResumeLayout(false); this.groupBoxIcon.Panel.PerformLayout(); @@ -509,11 +370,7 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).EndInit(); - this.kryptonGroupBox2.Panel.ResumeLayout(false); - this.kryptonGroupBox2.Panel.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).EndInit(); - this.kryptonGroupBox2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.kryptonThemeComboBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -545,22 +402,9 @@ private void InitializeComponent() private Krypton.Toolkit.KryptonLabel kryptonLabel1; private Krypton.Toolkit.KryptonCheckBox kchkRtlReading; private Krypton.Toolkit.KryptonCheckBox kchkRightAlign; - private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2; - private Krypton.Toolkit.KryptonRadioButton kradOffice365Silver; - private Krypton.Toolkit.KryptonRadioButton kradOffice365Black; - private Krypton.Toolkit.KryptonRadioButton kradOffice365Blue; - private Krypton.Toolkit.KryptonRadioButton kradOffice2013; - private Krypton.Toolkit.KryptonRadioButton kradOffice2010Silver; - private Krypton.Toolkit.KryptonRadioButton kradOffice2010Black; - private Krypton.Toolkit.KryptonRadioButton kradOffice2010Blue; - private Krypton.Toolkit.KryptonRadioButton kradOffice2007Silver; - private Krypton.Toolkit.KryptonRadioButton kradOffice2007Black; - private Krypton.Toolkit.KryptonRadioButton kradOffice2007Blue; - private Krypton.Toolkit.KryptonRadioButton kradSystem; - private Krypton.Toolkit.KryptonRadioButton kradOffice2003; - private Krypton.Toolkit.KryptonRadioButton kradSparklePurple; - private Krypton.Toolkit.KryptonRadioButton kradSparkleOrange; - private Krypton.Toolkit.KryptonRadioButton kradSparkleBlue; + private Krypton.Toolkit.KryptonThemeComboBox kryptonThemeComboBox1; + private Krypton.Toolkit.KryptonRadioButton rbShield; + private Krypton.Toolkit.KryptonCheckBox chkShowHelp; } } diff --git a/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Form1.cs b/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Form1.cs index 731e4c4a..72d6aefa 100644 --- a/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Form1.cs +++ b/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Form1.cs @@ -11,75 +11,27 @@ #endregion using System; +using System.Drawing; using System.Windows.Forms; using Krypton.Toolkit; + namespace KryptonMessageBoxExamples { public partial class Form1 : KryptonForm { private MessageBoxIcon _mbIcon = MessageBoxIcon.Warning; private KryptonMessageBoxIcon _kmbIcon = KryptonMessageBoxIcon.Warning; - private MessageBoxButtons _mbButtons = MessageBoxButtons.OKCancel; + private KryptonMessageBoxButtons _mbButtons = KryptonMessageBoxButtons.OKCancel; private MessageBoxOptions _options = 0; public Form1() { InitializeComponent(); - } - - private void palette_CheckedChanged(object sender, EventArgs e) - { - if (kradOffice2010Blue.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2010Blue; - } - else if (kradOffice2010Silver.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2010Silver; - } - else if (kradOffice2010Black.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2010Black; - } - else if (kradOffice2007Blue.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Blue; - } - else if (kradOffice2007Silver.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Silver; - } - else if (kradOffice2007Black.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.Office2007Black; - } - else if (kradSparkleBlue.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.SparkleBlue; - } - else if (kradSparkleOrange.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.SparkleOrange; - } - else if (kradSparklePurple.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.SparklePurple; - } - else if (kradOffice2003.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.ProfessionalOffice2003; - } - else if (kradSystem.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.ProfessionalSystem; - } - else if (kradOffice365Blue.Checked) - { - kryptonManager.GlobalPaletteMode = PaletteModeManager.Microsoft365Blue; - } + // Handle the HelpRequested event for the following message. + HelpRequested += Form1_HelpRequested; // https://github.com/Krypton-Suite/Standard-Toolkit/issues/868 } private void icon_CheckedChanged(object sender, EventArgs e) @@ -109,40 +61,48 @@ private void icon_CheckedChanged(object sender, EventArgs e) _mbIcon = MessageBoxIcon.Information; _kmbIcon = KryptonMessageBoxIcon.Information; } + else if (rbShield.Checked) + { + _mbIcon = MessageBoxIcon.None; + _kmbIcon = KryptonMessageBoxIcon.Shield; + } + else if (!kradWinLogo.Checked) + { + _mbIcon = MessageBoxIcon.None; + _kmbIcon = KryptonMessageBoxIcon.WindowsLogo; + } } private void buttons_CheckedChanged(object sender, EventArgs e) { if (kradOK.Checked) { - _mbButtons = MessageBoxButtons.OK; + _mbButtons = KryptonMessageBoxButtons.OK; } else if (kradOKCancel.Checked) { - _mbButtons = MessageBoxButtons.OKCancel; + _mbButtons = KryptonMessageBoxButtons.OKCancel; } else if (kradRetryCancel.Checked) { - _mbButtons = MessageBoxButtons.RetryCancel; + _mbButtons = KryptonMessageBoxButtons.RetryCancel; } else if (kradAbortRetryIgnore.Checked) { - _mbButtons = MessageBoxButtons.AbortRetryIgnore; + _mbButtons = KryptonMessageBoxButtons.AbortRetryIgnore; } else if (kradYesNo.Checked) { - _mbButtons = MessageBoxButtons.YesNo; + _mbButtons = KryptonMessageBoxButtons.YesNo; } else if (kradYesNoCancel.Checked) { - _mbButtons = MessageBoxButtons.YesNoCancel; + _mbButtons = KryptonMessageBoxButtons.YesNoCancel; } -#if NET60_OR_GREATER else if (kradCancelTryContinue.Checked) { - _mbButtons = MessageBoxButtons.CancelTryContinue; + _mbButtons = KryptonMessageBoxButtons.CancelTryContinue; } -#endif } private void ChkRightAlign_CheckedChanged(object sender, EventArgs e) @@ -171,17 +131,69 @@ private void ChkRtlReading_CheckedChanged(object sender, EventArgs e) private void kbtnShow_Click(object sender, EventArgs e) { - if (kradWinLogo.Checked) + if (!kradWinLogo.Checked + && !rbShield.Checked +#if NET6_0_OR_GREATER +#else + && !kradCancelTryContinue.Checked +#endif + ) { - KryptonMessageBox.Show(this, textBoxMessage.Text, textBoxCaption.Text, _mbButtons, KryptonMessageBoxIcon.WindowsLogo, options: _options); + MessageBox.Show(textBoxMessage.Text, textBoxCaption.Text, + (MessageBoxButtons)_mbButtons, + _mbIcon, MessageBoxDefaultButton.Button1, + _options, + chkShowHelp.Checked); } - else - { - MessageBox.Show(textBoxMessage.Text, textBoxCaption.Text, _mbButtons, _mbIcon, MessageBoxDefaultButton.Button1, _options); - KryptonMessageBox.Show(this, textBoxMessage.Text, textBoxCaption.Text, _mbButtons, _kmbIcon, - options: _options); - } + var res = KryptonMessageBox.Show(this, textBoxMessage.Text, textBoxCaption.Text, + _mbButtons, + _kmbIcon, + options: _options, + showHelpButton: chkShowHelp.Checked); + + textBoxMessage.Text = $@"Krypton DialogResult = {res}"; + } + + /// + /// Based on code from https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.messagebox.show?view=windowsdesktop-7.0#system-windows-forms-messagebox-show(system-string-system-string-system-windows-forms-messageboxbuttons-system-windows-forms-messageboxicon-system-windows-forms-messageboxdefaultbutton-system-windows-forms-messageboxoptions-system-boolean) + /// + /// + /// + private void Form1_HelpRequested(object sender, HelpEventArgs hlpEvent) + { + // Create a custom Help window in response to the HelpRequested event. + using Form helpForm = new() + { + // Set up the form position, size, and title caption. + StartPosition = FormStartPosition.Manual, + Size = new Size(200, 400), + DesktopLocation = new Point(DesktopBounds.X + Size.Width,DesktopBounds.Top), + Text = @"Help Form" + }; + + // Create a label to contain the Help text. + Label helpLabel = new Label (); + + // Add the label to the form and set its text. + helpForm.Controls.Add (helpLabel); + helpLabel.Dock = DockStyle.Fill; + + // Use the sender parameter to identify the context of the Help request. + // The parameter must be cast to the Control type to get the Tag property. + Control senderControl = sender as Control; + + helpLabel.Text = $@"Help information shown in response to user action on the '{(string)senderControl.Tag}' message."; + + // Set the Help form to be owned by the main form. This helps + // to ensure that the Help form is disposed of. + AddOwnedForm (helpForm); + + // Show the custom Help window. + helpForm.Show (); + + // Indicate that the HelpRequested event is handled. + hlpEvent.Handled = true; } } } diff --git a/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Program.cs index 98938f19..ecb1a004 100644 --- a/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonMessageBox Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonMessageBoxExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonMonthCalendar Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonMonthCalendar Examples/Program.cs index 7ed50c68..2bbe6917 100644 --- a/Source/Krypton Toolkit Examples/KryptonMonthCalendar Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonMonthCalendar Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonMonthCalendarExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonNumericUpDown Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonNumericUpDown Examples/Program.cs index 33b5b09e..52529f47 100644 --- a/Source/Krypton Toolkit Examples/KryptonNumericUpDown Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonNumericUpDown Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonNumericUpDownExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonPalette Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonPalette Examples/Program.cs index acb13494..8a442f79 100644 --- a/Source/Krypton Toolkit Examples/KryptonPalette Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonPalette Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonPaletteExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonPanel Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonPanel Examples/Program.cs index a0847608..175a85c1 100644 --- a/Source/Krypton Toolkit Examples/KryptonPanel Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonPanel Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonPanelExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonPrintDialog Example/Program.cs b/Source/Krypton Toolkit Examples/KryptonPrintDialog Example/Program.cs index 67daac76..f56543cb 100644 --- a/Source/Krypton Toolkit Examples/KryptonPrintDialog Example/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonPrintDialog Example/Program.cs @@ -3,13 +3,13 @@ namespace KryptonFontDialog_Example_2019 { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonRadioButton Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonRadioButton Examples/Program.cs index 45c979bd..1ddda5c3 100644 --- a/Source/Krypton Toolkit Examples/KryptonRadioButton Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonRadioButton Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonRadioButtonExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonRichTextBox Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonRichTextBox Examples/Program.cs index 206908dc..114e2c82 100644 --- a/Source/Krypton Toolkit Examples/KryptonRichTextBox Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonRichTextBox Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonRichTextBoxExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonScrollbar Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonScrollbar Examples/Program.cs index 7b7153db..6936b22e 100644 --- a/Source/Krypton Toolkit Examples/KryptonScrollbar Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonScrollbar Examples/Program.cs @@ -3,13 +3,13 @@ namespace KryptonScrollbarExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonSeparator Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonSeparator Examples/Program.cs index e59a81d1..9f38f1d5 100644 --- a/Source/Krypton Toolkit Examples/KryptonSeparator Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonSeparator Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonSeparatorExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonSplitContainer Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonSplitContainer Examples/Program.cs index e77bbc1e..2e0f7c52 100644 --- a/Source/Krypton Toolkit Examples/KryptonSplitContainer Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonSplitContainer Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonSplitContainerExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonStringCollectionEditor Examples 2022/Form1.cs b/Source/Krypton Toolkit Examples/KryptonStringCollectionEditor Examples 2022/Form1.cs index 712e2e6c..c5e9b330 100644 --- a/Source/Krypton Toolkit Examples/KryptonStringCollectionEditor Examples 2022/Form1.cs +++ b/Source/Krypton Toolkit Examples/KryptonStringCollectionEditor Examples 2022/Form1.cs @@ -1,12 +1,4 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; using Krypton.Toolkit; @@ -14,10 +6,7 @@ namespace KryptonStringCollectionEditorExamples { public partial class Form1 : KryptonForm { - public Form1() - { - InitializeComponent(); - } + public Form1() => InitializeComponent(); private void kbtnShow_Click(object sender, EventArgs e) { diff --git a/Source/Krypton Toolkit Examples/KryptonStringCollectionEditor Examples 2022/Program.cs b/Source/Krypton Toolkit Examples/KryptonStringCollectionEditor Examples 2022/Program.cs index 5d84401a..83cbab5e 100644 --- a/Source/Krypton Toolkit Examples/KryptonStringCollectionEditor Examples 2022/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonStringCollectionEditor Examples 2022/Program.cs @@ -12,7 +12,7 @@ internal static class Program /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonTableLayoutPanel Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonTableLayoutPanel Examples/Program.cs index e10e3a44..9274aa8f 100644 --- a/Source/Krypton Toolkit Examples/KryptonTableLayoutPanel Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonTableLayoutPanel Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonTableLayoutPanelExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonTaskDialog Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonTaskDialog Examples/Program.cs index bcafb8be..c10e7579 100644 --- a/Source/Krypton Toolkit Examples/KryptonTaskDialog Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonTaskDialog Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonTaskDialogExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonTextBox Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonTextBox Examples/Program.cs index 504228a6..39b78b46 100644 --- a/Source/Krypton Toolkit Examples/KryptonTextBox Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonTextBox Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonTextBoxExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonTrackBar Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonTrackBar Examples/Program.cs index 5f15801e..f32d8eea 100644 --- a/Source/Krypton Toolkit Examples/KryptonTrackBar Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonTrackBar Examples/Program.cs @@ -3,13 +3,13 @@ namespace KryptonTrackBarExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonTreeView Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonTreeView Examples/Program.cs index 22c24eb4..cda98be4 100644 --- a/Source/Krypton Toolkit Examples/KryptonTreeView Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonTreeView Examples/Program.cs @@ -10,13 +10,13 @@ namespace KryptonTreeViewExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/KryptonWebBrowser Example/Program.cs b/Source/Krypton Toolkit Examples/KryptonWebBrowser Example/Program.cs index 73cae252..3c46f769 100644 --- a/Source/Krypton Toolkit Examples/KryptonWebBrowser Example/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonWebBrowser Example/Program.cs @@ -8,13 +8,13 @@ namespace KryptonWebBrowserExample { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { // Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.EnableVisualStyles(); diff --git a/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Program.cs b/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Program.cs index 078db31c..3f7eb5e3 100644 --- a/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Program.cs +++ b/Source/Krypton Toolkit Examples/KryptonWrapLabel Examples/Program.cs @@ -15,13 +15,13 @@ namespace KryptonWrapLabelExamples { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/MDI Application/Form1.cs b/Source/Krypton Toolkit Examples/MDI Application/Form1.cs index e456f4b0..828cce80 100644 --- a/Source/Krypton Toolkit Examples/MDI Application/Form1.cs +++ b/Source/Krypton Toolkit Examples/MDI Application/Form1.cs @@ -12,6 +12,7 @@ using System; using System.Windows.Forms; + using Krypton.Toolkit; namespace MDIApplication @@ -42,11 +43,9 @@ private void newWindowToolStripMenuItem_Click(object sender, EventArgs e) => // Add another MDI child window AddMDIChildWindow(); - private void closeWindowToolStripMenuItem_Click(object sender, EventArgs e) - { + private void closeWindowToolStripMenuItem_Click(object sender, EventArgs e) => // Close just the active child ActiveMdiChild?.Close(); - } private void closeAllWidowToolStripMenuItem_Click(object sender, EventArgs e) { diff --git a/Source/Krypton Toolkit Examples/MDI Application/Program.cs b/Source/Krypton Toolkit Examples/MDI Application/Program.cs index d6df2127..a2b82d31 100644 --- a/Source/Krypton Toolkit Examples/MDI Application/Program.cs +++ b/Source/Krypton Toolkit Examples/MDI Application/Program.cs @@ -15,13 +15,13 @@ namespace MDIApplication { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/SystemThemedForms/Program.cs b/Source/Krypton Toolkit Examples/SystemThemedForms/Program.cs index fbd1c1d9..f1aec971 100644 --- a/Source/Krypton Toolkit Examples/SystemThemedForms/Program.cs +++ b/Source/Krypton Toolkit Examples/SystemThemedForms/Program.cs @@ -10,13 +10,13 @@ namespace SystemThemedForms { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Test Clip Base/Program.cs b/Source/Krypton Toolkit Examples/Test Clip Base/Program.cs index 8eab3ec2..e142aaea 100644 --- a/Source/Krypton Toolkit Examples/Test Clip Base/Program.cs +++ b/Source/Krypton Toolkit Examples/Test Clip Base/Program.cs @@ -8,13 +8,13 @@ namespace Test_Clip_Base { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Test Clip Base/Test Clip Base 2022.csproj b/Source/Krypton Toolkit Examples/Test Clip Base/Test Clip Base 2022.csproj index 84369ad4..6468a0eb 100644 --- a/Source/Krypton Toolkit Examples/Test Clip Base/Test Clip Base 2022.csproj +++ b/Source/Krypton Toolkit Examples/Test Clip Base/Test Clip Base 2022.csproj @@ -1,6 +1,6 @@  - net5.0-windows + net6.0-windows WinExe Test_Clip_Base Test Clip Base diff --git a/Source/Krypton Toolkit Examples/Test Combo Domain Numeric/Program.cs b/Source/Krypton Toolkit Examples/Test Combo Domain Numeric/Program.cs index a05f0f47..2dd3bdc3 100644 --- a/Source/Krypton Toolkit Examples/Test Combo Domain Numeric/Program.cs +++ b/Source/Krypton Toolkit Examples/Test Combo Domain Numeric/Program.cs @@ -8,13 +8,13 @@ namespace Test_Combo_Domain_Numeric { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Form1.cs b/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Form1.cs index 127d4548..67d99b49 100644 --- a/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Form1.cs +++ b/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Form1.cs @@ -183,7 +183,7 @@ private void btnLongContents_Click(object sender, EventArgs e) catch (Exception ex) { MessageBox.Show(this, ex.StackTrace, "ex.Message", MessageBoxButtons.OK, MessageBoxIcon.Stop); - KryptonMessageBox.Show(this, ex.StackTrace, "ex.Message", MessageBoxButtons.OK, KryptonMessageBoxIcon.Stop); + KryptonMessageBox.Show(this, ex.StackTrace, "ex.Message", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Stop); } } @@ -209,7 +209,7 @@ private void btnLongContentsNoOwner_Click(object sender, EventArgs e) catch (Exception ex) { MessageBox.Show(ex.StackTrace, "ex.Message", MessageBoxButtons.OK, MessageBoxIcon.Stop); - KryptonMessageBox.Show(ex.StackTrace, "ex.Message", MessageBoxButtons.OK, KryptonMessageBoxIcon.Stop); + KryptonMessageBox.Show(ex.StackTrace, "ex.Message", KryptonMessageBoxButtons.OK, KryptonMessageBoxIcon.Stop); } } } diff --git a/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Program.cs b/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Program.cs index 26e45e60..8b5debea 100644 --- a/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Program.cs +++ b/Source/Krypton Toolkit Examples/Test MessageBox Clipping/Program.cs @@ -10,13 +10,13 @@ namespace TestMessageBoxClipping { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Test Text Clipping/Program.cs b/Source/Krypton Toolkit Examples/Test Text Clipping/Program.cs index c562f05f..a6a97264 100644 --- a/Source/Krypton Toolkit Examples/Test Text Clipping/Program.cs +++ b/Source/Krypton Toolkit Examples/Test Text Clipping/Program.cs @@ -10,13 +10,13 @@ namespace TestTextClipping { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Three Pane Application (Basic)/Program.cs b/Source/Krypton Toolkit Examples/Three Pane Application (Basic)/Program.cs index 186f42ec..e7f3b432 100644 --- a/Source/Krypton Toolkit Examples/Three Pane Application (Basic)/Program.cs +++ b/Source/Krypton Toolkit Examples/Three Pane Application (Basic)/Program.cs @@ -15,13 +15,13 @@ namespace ThreePaneApplication { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Program.cs b/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Program.cs index 186f42ec..e7f3b432 100644 --- a/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Program.cs +++ b/Source/Krypton Toolkit Examples/Three Pane Application (Extended)/Program.cs @@ -15,13 +15,13 @@ namespace ThreePaneApplication { - static class Program + internal static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main() + private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false);