• 大小: 0.13M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

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 EnglishTextBox
{
    public partial class E_TextBox : TextBox
    {
        public E_TextBox()
        {
            InitializeComponent();
        }

        private void E_TextBox_KeyDown(object sender KeyEventArgs e)
        {

        }

        private void E_TextBox_KeyPress(object sender KeyPressEventArgs e)
        {
            if (!((e.KeyChar <= ‘z‘ && e.KeyChar >= ‘a‘) || (e.KeyChar <= ‘Z‘ && e.KeyChar >= ‘A‘) || e.KeyChar == ‘\b‘ || e.KeyChar == ‘\r‘))//如果输入的数字
            {
                e.Handled = true;//处理KeyPress事件
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         932  2009-02-12 10:21  sj\01\EnglishTextBox\EnglishTextBox.sln
     文件       16896  2009-02-12 10:36  sj\01\EnglishTextBox\EnglishTextBox.suo
     文件        4103  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\EnglishTextBox.csproj
     文件         827  2009-02-12 10:34  sj\01\EnglishTextBox\EnglishTextBox\E_TextBox.cs
     文件        1315  2009-02-12 10:34  sj\01\EnglishTextBox\EnglishTextBox\E_TextBox.Designer.cs
     文件        5995  2009-02-12 10:34  sj\01\EnglishTextBox\EnglishTextBox\E_TextBox.resx
     文件         364  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\Form1.cs
     文件        1888  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\Form1.Designer.cs
     文件        5814  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\Form1.resx
     文件         495  2009-02-12 10:21  sj\01\EnglishTextBox\EnglishTextBox\Program.cs
     文件        8704  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\bin\Debug\EnglishTextBox.exe
     文件       30208  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\bin\Debug\EnglishTextBox.pdb
     文件       14328  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\bin\Debug\EnglishTextBox.vshost.exe
     文件         490  2007-07-21 01:33  sj\01\EnglishTextBox\EnglishTextBox\bin\Debug\EnglishTextBox.vshost.exe.manifest
     文件        1218  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\obj\Debug\EnglishTextBox.csproj.FileListAbsolute.txt
     文件         909  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\obj\Debug\EnglishTextBox.csproj.GenerateResource.Cache
     文件        8704  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\obj\Debug\EnglishTextBox.exe
     文件         180  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\obj\Debug\EnglishTextBox.E_TextBox.resources
     文件         180  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\obj\Debug\EnglishTextBox.Form1.resources
     文件       30208  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\obj\Debug\EnglishTextBox.pdb
     文件         180  2009-02-12 10:35  sj\01\EnglishTextBox\EnglishTextBox\obj\Debug\EnglishTextBox.Properties.Resources.resources
     文件        1360  2009-02-12 10:21  sj\01\EnglishTextBox\EnglishTextBox\Properties\AssemblyInfo.cs
     文件        2878  2009-02-12 10:21  sj\01\EnglishTextBox\EnglishTextBox\Properties\Resources.Designer.cs
     文件        5612  2009-02-12 10:21  sj\01\EnglishTextBox\EnglishTextBox\Properties\Resources.resx
     文件        1099  2009-02-12 10:21  sj\01\EnglishTextBox\EnglishTextBox\Properties\Settings.Designer.cs
     文件         249  2009-02-12 10:21  sj\01\EnglishTextBox\EnglishTextBox\Properties\Settings.settings
     文件         929  2009-02-12 10:38  sj\02\RestrictDigit\RestrictDigit.sln
     文件       16384  2009-02-12 11:03  sj\02\RestrictDigit\RestrictDigit.suo
     文件         363  2009-02-12 11:00  sj\02\RestrictDigit\RestrictDigit\Form1.cs
     文件        1926  2009-02-12 11:00  sj\02\RestrictDigit\RestrictDigit\Form1.Designer.cs
     文件        5814  2009-02-12 11:00  sj\02\RestrictDigit\RestrictDigit\Form1.resx
............此处省略45个文件信息

评论

共有 条评论