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 IPTextBox
{
public partial class IPAddressBox : TextBox
{
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ClassName = "SysIPAddress32";//Use Win32 API SysIPAddress32 Control
return cp;
}
}
public IPAddressBox() : base()
{
InitializeComponent();
}
}
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 IPTextBox { public partial class IPAddressBox : TextBox { protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ClassName = "SysIPAddress32";//Use Win32 API SysIPAddress32 Control return cp; } }
}