Language/C#

Custom Scrollbar

비비이잉 2022. 1. 20. 15:15
반응형

https://programmerall.com/article/5547681052/

 

C# winform custom scroll bar - Programmer All

1. Controls One UserControl as ScrollBg, one panel as ScrollBar 2. Realize the function (1) Set the background color and background image of the scroll bar (2) Set the background color and background image of the scroll bar slider (3) Drag the slider with

programmerall.com

private void button_minimize_Click(object sender, EventArgs e)
{
    WindowState = FormWindowState.Minimized;
}

private void button_maximize_Click(object sender, EventArgs e)
{
    WindowState = WindowState == FormWindowState.Maximized ? FormWindowState.Normal : FormWindowState.Maximized;
}

private void button_close_Click(object sender, EventArgs e)
{
    Close();
}
반응형