Click here to Skip to main content
13,149,186 members (52,164 online)
Click here to Skip to main content

Stats

469.7K views
30.1K downloads
292 bookmarked
Posted 19 Jan 2005
MIT

A C# IP Address Control

, 28 Apr 2008
A C# analogue to the MFC CIPAddressCtrl
IPAddressControlLib
sgKey.snk
Strings.resources
TestIPAddressControl
App.ico
bin
Release
IPAddressControlLib.dll
TestIPAddressControl.exe
IPAddressControlLib.dll
sgKey.snk
Strings.resources
sgKey.snk
Strings.resources
sgKey.snk
Strings.resources
App.ico
IPAddressControlLib.dll
TestIPAddressControl.exe
IPAddressControlLib.dll
App.ico
IPAddressControlLib.dll
TestIPAddressControl.exe
IPAddressControlLib.dll
App.ico
IPAddressControlLib.dll
TestIPAddressControl.exe
IPAddressControlLib.dll
IPAddressControl.snk
Properties
IPAddressControlLib.dll
TestIPAddressControl.exe
IPAddressControlLib.dll
Properties
IPAddressControl.snk
IPAddressControl.snk
IPAddressControl.snk
IPAddressControlLib.dll
TestIPAddressControl.exe
IPAddressControlLib.dll
IPAddressControlLib.dll
TestIPAddressControl.exe
IPAddressControlLib.dll
IPAddressControlLib.dll
TestIPAddressControl.exe
IPAddressControlLib.dll
ipaddresscontrollib.snk
IPAddressControlLib.dll
TestIPAddressControl.exe
IPAddressControlLib.dll
namespace TestIPAddressControl
{
   partial class Form1
   {
      /// <summary>
      /// Required designer variable.
      /// </summary>
      private System.ComponentModel.IContainer components = null;

      /// <summary>
      /// Clean up any resources being used.
      /// </summary>
      /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
      protected override void Dispose( bool disposing )
      {
         if ( disposing && ( components != null ) )
         {
            components.Dispose();
         }
         base.Dispose( disposing );
      }

      #region Windows Form 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.label1 = new System.Windows.Forms.Label();
         this.ipAddressControl1 = new IPAddressControlLib.IPAddressControl();
         this.SuspendLayout();
         // 
         // label1
         // 
         this.label1.AutoSize = true;
         this.label1.Location = new System.Drawing.Point( 12, 15 );
         this.label1.Name = "label1";
         this.label1.Size = new System.Drawing.Size( 61, 13 );
         this.label1.TabIndex = 0;
         this.label1.Text = "IP Address:";
         // 
         // ipAddressControl1
         // 
         this.ipAddressControl1.AllowInternalTab = false;
         this.ipAddressControl1.AutoHeight = true;
         this.ipAddressControl1.BackColor = System.Drawing.SystemColors.Window;
         this.ipAddressControl1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
         this.ipAddressControl1.Cursor = System.Windows.Forms.Cursors.IBeam;
         this.ipAddressControl1.Location = new System.Drawing.Point( 79, 12 );
         this.ipAddressControl1.MinimumSize = new System.Drawing.Size( 87, 20 );
         this.ipAddressControl1.Name = "ipAddressControl1";
         this.ipAddressControl1.ReadOnly = false;
         this.ipAddressControl1.Size = new System.Drawing.Size( 87, 20 );
         this.ipAddressControl1.TabIndex = 1;
         this.ipAddressControl1.Text = "...";
         this.ipAddressControl1.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler( this.ipAddressControl1_PreviewKeyDown );
         this.ipAddressControl1.KeyUp += new System.Windows.Forms.KeyEventHandler( this.ipAddressControl1_KeyUp );
         this.ipAddressControl1.KeyPress += new System.Windows.Forms.KeyPressEventHandler( this.ipAddressControl1_KeyPress );
         this.ipAddressControl1.KeyDown += new System.Windows.Forms.KeyEventHandler( this.ipAddressControl1_KeyDown );
         // 
         // Form1
         // 
         this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F );
         this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
         this.ClientSize = new System.Drawing.Size( 187, 45 );
         this.Controls.Add( this.ipAddressControl1 );
         this.Controls.Add( this.label1 );
         this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
         this.Name = "Form1";
         this.Text = "Form1";
         this.ResumeLayout( false );
         this.PerformLayout();

      }

      #endregion

      private System.Windows.Forms.Label label1;
      private IPAddressControlLib.IPAddressControl ipAddressControl1;
   }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License

Share

About the Author

mid=5741
Canada Canada
No Biography provided

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170924.2 | Last Updated 28 Apr 2008
Article Copyright 2005 by mid=5741
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid