WinForm使用Label控件模拟分割线(竖向)时间:2023-01-10 17:54:49用Label控件进行模拟 宽度设为1:this.lblPagerSpliter1.Size = new System.Drawing.Size(1, 21); 去掉边框:this.lblPagerSpliter1.BorderStyle = BorderStyle.None; 设置背景色(模拟分割线颜色):this.lblPagerSpliter1.BackColor = ColorTranslator.FromHtml("#ADBECB");