自己开发基于C#的垂直滚动条控件

发表于:2015-4-27 09:57

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:Elegies    来源:51Testing软件测试网采编

分享:
  例如:
  在属性浏览器中设置:
  设计器自动生成如下代码:
  在Form类中:
  private MyControlLibrary.ScrollBar TextScrollBar;
  在InitializeComponent()中:
this.TextScrollBar.BackColor = System.Drawing.Color.White;
this.TextScrollBar.EnterColor = System.Drawing.SystemColors.ControlDark;
this.TextScrollBar.Location = new System.Drawing.Point(664, 44);
this.TextScrollBar.MinSlideBarLenght = 30;
this.TextScrollBar.Name = "TextScrollBar";
this.TextScrollBar.PressedColor = System.Drawing.SystemColors.ControlDarkDark;
this.TextScrollBar.Size = new System.Drawing.Size(10, 323);
this.TextScrollBar.TabIndex = 18;
this.TextScrollBar.TextBox = this.TextBox_Receive;
this.TextScrollBar.WakedColor = System.Drawing.SystemColors.ControlLight;
  效果图:
22/2<12
重磅发布,2022软件测试行业现状调查报告~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2023
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号