一个数字文本框控件,我觉得思路蛮不错的

作者:袖梨 2022-07-02
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
using System.Diagnostics;
namespace UtilityLibrary
{
    ///
    /// Summary description for NumericTextBox.
    ///

    public class NumericTextBox : System.Windows.Forms.TextBox
    {
        private int minimum = -1;
        private int maximum = -1;
        private bool useRange = false;
        private string lastChar;
        
        public NumericTextBox()
        {
       InitializeComponent();
        }
        protected override void OnPaint(PaintEventArgs pe)
        {
       base.OnPaint(pe);
        }
        public Size SetRange
        {
       get

相关文章

精彩推荐