반응형
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();
}
반응형
'Language > C#' 카테고리의 다른 글
C# 다른 폼에서 다른 폼의 컨트롤 제어 (0) | 2022.02.16 |
---|---|
C# panel fade out (0) | 2022.02.08 |
키보드 이벤트 순서 (0) | 2022.01.12 |
컨트롤 이벤트 PreviewKeydown vs Keydown (0) | 2022.01.12 |
C# 스크린 화면에서 스크롤 조정 (PointToScreen) (0) | 2022.01.12 |