@manhng

Welcome to my blog!

Treeview + Checkboxes

March 31, 2022 00:13

Treeview + Checkboxes (edit)

CheckedListBox

Winforms - Search in for items in CheckedListBox C# - Stack Overflow

Checkbox - WinForms TreeView with both radios and checkboxes - Stack Overflow

RadioListBox: A ListBox with Radio Buttons (Winforms version) - CodeProject

The Best C# Programmer In The World - Benjamin Perkins

Windows Forms Application

Select Text in TextBox Control - Windows Forms .NET Framework | Microsoft Docs

private void MainForm_Load(object sender, EventArgs e)
{
//Hide or Remove or Disable both Maximize, Minimize button
this.ControlBox = false;
this.MaximizeBox = false;
this.MinimizeBox = false;

//Disable Resizing WinForms
this.FormBorderStyle = FormBorderStyle.FixedSingle;

//Set KeyPreview = true => Using FormClosingEventArgs (MainForm_FormClosing)
this.KeyPreview = true;
}

protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Escape)
{
this.Close();
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}

private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
{
if (MessageBox.Show("Are you sure you want to close this program?", "Application", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
{
e.Cancel = true;
}
}

How To Create Login Form In Windows Application Using C# (c-sharpcorner.com)

Going to Next Control by Clicking Enter or Down Key in C# Windows Forms Application (c-sharpcorner.com)

Source Code

benperk/TheBestCSharpProgrammerInTheWorld: The Best C# Programmer In The World - Benjamin Perkins (github.com)

Source Code | The Best C# Programmer In The World - Benjamin Perkins (thebestcsharpprogrammerintheworld.com)

Treeview with checkbox in WPF | The Best C# Programmer In The World - Benjamin Perkins (thebestcsharpprogrammerintheworld.com)

.NET FOLLOWER » Hide a TreeNode’s checkbox in a TreeView (dotnetfollower.com)

.NET FOLLOWER » WinForms: How to hide checkbox of the certain TreeNode in TreeView control (dotnetfollower.com)

Categories

Recent posts