(Viii) c # Winform custom control - the dividing line

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/kwwwvagaa/article/details/100586905

premise

The bank has 7, 8 years, and always wanted to do a nice custom control points, so there is this series of articles.

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

Cloud code: https://gitee.com/kwwwvagaa/net_winform_custom_control.git

If you feel that writing was okay, please support the point of a star about it

Come and explore the exchange: Penguins 568 015 492 Penguins 568 015 492

table of Contents

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

Usefulness and effectiveness

Use: Use when the partition region

effect:

Ready to work

It is actually a horizontal line and a vertical line, no technical content, as to why it should be equal, the effect is to make unified, easy to use them

Start

Transverse dividing line

Add User Control, named UCSplitLine_H

All code is as follows

// 版权所有  黄正辉  交流群:568015492   QQ:623128629
// 文件名称:UCSplitLine_H.cs
// 创建日期:2019-08-15 16:03:21
// 功能描述:Split
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HZH_Controls.Controls
{
    public partial class UCSplitLine_H : UserControl
    {
        public UCSplitLine_H()
        {
            InitializeComponent();
            this.TabStop = false;
        }
    }
}



namespace HZH_Controls.Controls
{
    partial class UCSplitLine_H
    {
        /// <summary> 
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region 组件设计器生成的代码

        /// <summary> 
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.SuspendLayout();
            // 
            // UCSplitLine_H
            // 
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
            this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232)))));
            this.Name = "UCSplitLine_H";
            this.Size = new System.Drawing.Size(100, 1);
            this.ResumeLayout(false);

        }

        #endregion
    }
}

 

 

Last words

If you like it, please  https://gitee.com/kwwwvagaa/net_winform_custom_control  point stars right

Guess you like

Origin blog.csdn.net/kwwwvagaa/article/details/100586905