http://www.hzhcontrols.com

前提

入行已经7,8年了,一直想做一套漂亮点的自定义控件,于是就有了本系列文章。

GitHub:https://github.com/kwwwvagaa/NetWinformControl

码云:https://gitee.com/kwwwvagaa/net_winform_custom_control.git

如果觉得写的还行,请点个 star 支持一下吧

欢迎前来交流探讨: 企鹅群568015492 (八)c#Winform自定义控件-分割线-HZHControls

目录

https://www.cnblogs.com/bfyx/p/11364884.html

准备工作

其实就是1个横向的线和纵向的线,没有什么技术含量,至于为什么要等于呢,就是为了让效果统一,用起来方便

开始

横向的分割线

添加用户控件,命名UCSplitLine_H

全部代码如下

 1 // 版权所有  黄正辉  交流群:568015492   QQ:623128629
 2 // 文件名称:UCSplitLine_H.cs
 3 // 创建日期:2019-08-15 16:03:21
 4 // 功能描述:Split
 5 // 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
 6 using System;
 7 using System.Collections.Generic;
 8 using System.ComponentModel;
 9 using System.Drawing;
10 using System.Data;
11 using System.Linq;
12 using System.Text;
13 using System.Windows.Forms;
14 
15 namespace HZH_Controls.Controls
16 {
17     public partial class UCSplitLine_H : UserControl
18     {
19         public UCSplitLine_H()
20         {
21             InitializeComponent();
22             this.TabStop = false;
23         }
24     }
25 }
View Code

相关文章:

  • 2021-11-15
  • 2022-02-19
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
  • 2021-11-25
  • 2021-12-07
  • 2021-12-16
猜你喜欢
  • 2021-06-23
  • 2021-10-19
  • 2021-09-14
  • 2021-06-09
  • 2021-11-18
  • 2022-02-12
  • 2021-08-05
相关资源
相似解决方案