⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.cs

📁 TestIPControl控件介绍 TestIPControl控件介绍
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TestIPAddressControl
{
   public partial class Form1 : Form
   {
      public Form1()
      {
         InitializeComponent();
      }

      private void ipAddressControl1_KeyDown( object sender, KeyEventArgs e )
      {
         Console.WriteLine( "KeyDown: {0}", e.KeyValue );
      }

      private void ipAddressControl1_KeyPress( object sender, KeyPressEventArgs e )
      {
         Console.WriteLine( "KeyPress: {0}", Convert.ToInt32( e.KeyChar ) );
      }

      private void ipAddressControl1_KeyUp( object sender, KeyEventArgs e )
      {
         Console.WriteLine( "KeyUp: {0}", e.KeyValue );
      }

      private void ipAddressControl1_PreviewKeyDown( object sender, PreviewKeyDownEventArgs e )
      {
         Console.WriteLine( "PreviewKeyDown: {0}", e.KeyValue );
      }
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -