`
seagle0128
  • 浏览: 43935 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

IPBoxControl 开发手记(二)

    博客分类:
  • .NET
阅读更多

    如果哪位发现什么问题和bug,请多多指出,我会及时修改。谢谢!

/**//*
 * Purpose: IPAddress TextBox Control.
 * Author: Vincent
 * Date: 2004-10-29
 *
 
*/


using System;
using System.Windows.Forms;

namespace Sci.Vincent.Controls
{
    
/**//// <summary>
    
/// IP Address Box Control.
    
/// </summary>
    public class IPBox : System.Windows.Forms.UserControl
    
{
        
private System.Windows.Forms.TextBox textBox1;
        
private System.Windows.Forms.Label label1;
        
private System.Windows.Forms.Label label2;
        
private System.Windows.Forms.TextBox textBox2;
        
private System.Windows.Forms.Label label3;
        
private System.Windows.Forms.TextBox textBox3;
        
private System.Windows.Forms.TextBox textBox4;

        
/**//// <summary>
        
/// Required designer variable.
        
/// </summary>
        private System.ComponentModel.Container components = null;

        
private System.Windows.Forms.Panel panel1;

        
private const int DEFAULT_WIDTH_SIZE = 136;
        
private const int DEFAULT_HEIGHT_SIZE = 20;
        
private string _text = "";
        
private bool _isAllowWarn = true;
        
private Languages _language = Languages.English;

        
/**//// <summary>
        
/// Usable languages enumeration.
        
/// </summary>
        public enum Languages
        
{
            
/**//// <summary>
            
/// English language
            
/// </summary>
            English,
            
/**//// <summary>
            
/// Chinese language
            
/// </summary>
            Chinese
        }



        
/**//// <summary>
        
/// Creates an instance of the IPBox class.
        
/// </summary>
        public IPBox()
        
{
            
// This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            
// TODO: Add any initialization after the InitComponent call

        }


        
/**//// <summary>
        
/// Clean up any resources being used.
        
/// </summary>
        protected override void Dispose(bool disposing)
        
{
            
if (disposing)
            
{
                
if (components != null)
                    components.Dispose();
            }

            
base.Dispose(disposing);
        }


        
Component Designer generated code#region Component Designer generated code

        
/**//// <summary>
        
/// Required method for Designer support - do not modify 
        
/// the contents of this method with the code editor.
        
/// </summary>
        private void InitializeComponent()
        
{
            
this.textBox1 = new System.Windows.Forms.TextBox();
            
this.label1 = new System.Windows.Forms.Label();
            
this.label2 = new System.Windows.Forms.Label();
            
this.textBox2 = new System.Windows.Forms.TextBox();
            
this.label3 = new System.Windows.Forms.Label();
            
this.textBox3 = new System.Windows.Forms.TextBox();
            
this.textBox4 = new System.Windows.Forms.TextBox();
            
this.panel1 = new System.Windows.Forms.Panel();
            
this.panel1.SuspendLayout();
            
this.SuspendLayout();
            
// 
            
// textBox1
            
// 
            this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
            
this.textBox1.Location = new System.Drawing.Point(80);
            
this.textBox1.MaxLength = 3;
            
this.textBox1.Name = "textBox1";
            
this.textBox1.Size = new System.Drawing.Size(2013);
            
this.textBox1.TabIndex = 0;
            
this.textBox1.Text = "";
            
this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            
this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress);
            
// 
            
// label1
            
// 
            this.label1.BackColor = System.Drawing.SystemColors.Window;
            
this.label1.Location = new System.Drawing.Point(320);
            
this.label1.Name = "label1";
            
this.label1.Size = new System.Drawing.Size(814);
            
this.label1.TabIndex = 1;
            
this.label1.Text = ".";
            
this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            
// 
            
// label2
            
// 
            this.label2.BackColor = System.Drawing.SystemColors.Window;
            
this.label2.Location = new System.Drawing.Point(640);
            
this.label2.Name = "label2";
            
this.label2.Size = new System.Drawing.Size(814);
            
this.label2.TabIndex = 3;
            
this.label2.Text = ".";
            
this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            
// 
            
// textBox2
            
// 
            this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None;
            
this.textBox2.Location = new System.Drawing.Point(400);
            
this.textBox2.MaxLength = 3;
            
this.textBox2.Name = "textBox2";
            
this.textBox2.Size = new System.Drawing.Size(2013);
            
this.textBox2.TabIndex = 2;
            
this.textBox2.Text = "";
            
this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            
this.textBox2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox2_KeyPress);
            
// 
            
// label3
            
// 
            this.label3.BackColor = System.Drawing.SystemColors.Window;
            
this.label3.Location = new System.Drawing.Point(960);
            
this.label3.Name = "label3";
            
this.label3.Size = new System.Drawing.Size(814);
            
this.label3.TabIndex = 5;
            
this.label3.Text = ".";
            
this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            
// 
            
// textBox3
            
// 
            this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None;
            
this.textBox3.Location = new System.Drawing.Point(720);
            
this.textBox3.MaxLength = 3;
            
this.textBox3.Name = "textBox3";
            
this.textBox3.Size = new System.Drawing.Size(2013);
            
this.textBox3.TabIndex = 4;
            
this.textBox3.Text = "";
            
this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            
this.textBox3.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox3_KeyPress);
            
// 
            
// textBox4
            
// 
            this.textBox4.BorderStyle = System.Windows.Forms.BorderStyle.None;
            
this.textBox4.Location = new System.Drawing.Point(1040);
            
this.textBox4.MaxLength = 3;
            
this.textBox4.Name = "textBox4";
            
this.textBox4.Size = new System.Drawing.Size(2013);
            
this.textBox4.TabIndex = 6;
            
this.textBox4.Text = "";
            
this.textBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            
this.textBox4.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox4_KeyPress);
            
// 
            
// panel1
            
// 
            this.panel1.BackColor = System.Drawing.SystemColors.Window;
            
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
      &
分享到:
评论

相关推荐

    网页开发手记 htmlcss js

    开发网页看 网页开发手记 htmlcss js 大家可以看看

    Android开发手记一_NDK编程实例

    ### Android开发手记一_NDK编程实例 #### 一、开发环境的搭建 在开始具体的NDK编程之前,首先需要确保开发环境已经被正确地搭建起来。对于初次接触Android NDK开发的朋友来说,拥有一个良好的环境配置是至关重要的...

    网页开发手记 HTML

    一本描述网页开发的书,很全,希望大家能喜欢

    网页开发手记htmlcssjavascript实战详解

    网页开发手记htmlcssjavascript实战详解 电子工业出版社 叶青 孙亚南 孙泽军编著

    同人游戏开发手记-附件(2.3.2)

    同人游戏开发手记-附件(2.2.2-2.2.6) 具体说明见我的博客(http://blog.csdn.net/fosly) 一如既往的骗5个积分, 积分不够的请留个Email, C屌相信总会有不缺分儿的人出现的, 所以坚决不免分

    网页开发手记:486个JavaScript网页特效详解_光盘源文件

    本资料“网页开发手记:486个JavaScript网页特效详解”正是针对这一主题进行深入探讨的资源,包含了大量实用的JavaScript特效代码实例。 首先,我们要理解JavaScript的基本概念。JavaScript是一种解释型的、基于...

    《网页开发手记:HTML+CSS+JavaScript实战详解》

    《网页开发手记:HTML+CSS+JavaScript实战详解》是一本专门为初学者设计的Web前端技术教程,旨在帮助读者深入理解和掌握网页开发的核心技术。这本书的内容涵盖了HTML、CSS和JavaScript这三个网页开发的基础和核心...

    网页开发手记.HTML.CSS.JavaScript实战详解

    《网页开发手记--实战详解》由叶青、孙亚南、孙泽军编著,笔者将网页制作技术粗略划分为前台浏览器端技术和后台服务器端技术。本书主要学习前台浏览器端技术,也就是静态页面制作技术。早期只需要使用HTML即可单独...

    JavaEye3.0开发手记

    ### JavaEye3.0开发手记之开发环境搭建详解 #### 一、开发环境搭建概述 随着JavaEye3.0开发计划的启动,本篇文章将详细介绍如何为该项目搭建高效的开发环境。开发过程中不仅需要考虑软件的选择,还需要针对操作...

    WM今日插件开发手记

    《WM今日插件开发手记》是一篇关于插件开发的博客文章,作者分享了在Windows Mobile(WM)平台上开发工具栏插件的经验和心得。虽然原始描述为空,但我们可以根据标题和提供的文件名来推测文章可能涉及的内容。 首先...

    网页开发手记:HTML+CSS+JavaScript实战详解

    网页开发手记:HTML+CSS+JavaScript实战详解,初学看看

    Android开发手记--环境配置[收集].pdf

    第二步:安装 ADT 开发插件 Eclipse 的强大与灵活就在于此,安装不同的插件就会是不同的 IDE。安装 ADT 开发插件,可以在线安装, Help-&gt;Software Updates-&gt;Find and Install-&gt;Search for new features to install-...

    同人游戏开发手记-附件(2.2.2-2.2.6)

    本资料集“同人游戏开发手记-附件(2.2.2-2.2.6)”包含了五个关键章节,分别涉及游戏开发的不同方面,为有志于同人游戏制作的开发者提供了宝贵的学习资源。 首先,章节2.2.2可能涵盖了游戏设计的基础知识,包括游戏...

    OA开发手记

    【OA开发手记】是关于企业办公自动化(Office Automation,简称OA)系统开发的经验与笔记,博主通过分享自己的实践过程,深入浅出地探讨了OA系统的核心技术和开发流程。在这个过程中,源码和工具的使用是关键部分,...

    Android开发手记--环境配置.pdf

    这篇“Android开发手记--环境配置”主要介绍了如何在Windows XP环境下,利用MyEclipse进行Android开发的初始设置。 首先,你需要下载Android SDK。SDK(Software Development Kit)是Android开发的基础,包含了开发...

    Wicket 1.4 开发手记(一) helloworld与环境配置

    #### 二、关于SSH开发模式的缺陷 ##### 1. 整合复杂,除错困难 SSH开发模式涉及到三个主要的框架:Struts用于处理Web层,Spring用于业务逻辑层和控制层,Hibernate用于持久层。这三个框架覆盖了Web应用开发的主要...

Global site tag (gtag.js) - Google Analytics