建立一个EXE工程,在窗体上放一个文本框和一个水平滚动条。设置滚动条的最大最小属性分别为:100和1。如图36。
图36
为滚动条的change事件输入代码:
Sub Form1_HScroll1_Change(hWndForm As hWnd, hWndControl As hWnd, hNewPos As Long, n…
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;namespace Net6_GeneralUiWinFrm
{public class CircularProgressBar : Control{private int progress 0;private int borderWidth 20; // 增加的边框宽度public int Progr…