m66n / ipaddresscontrollib

Automatically exported from code.google.com/p/ipaddresscontrollib
Other
61 stars 25 forks source link

My suggestion: Use Win32 API SysIPAddress32 Control #20

Closed kaeseth closed 3 years ago

kaeseth commented 3 years ago

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();
    }
}

}