IP Address Input Control

IP Address Input control allows formatted field based and unformatted free-text entry for IP addresses. Control supports NULL values so you can safely bind it to database fields.


Default input mode of IP Address control is structured field mode, but you can also switch the control to the free text entry mode using the button.

When free-text entry button is clicked the field inputs get replaced with the text-box input which accepts anything user types in. Now you can accept values that are not in default structured format for the control. For example, control provides default implementation where the value entered is resolved as host or domain name into the IP address automatically.

For example, if you switch the control to free-text entry mode and type devcomponents.com, that value will be converted into the IP address of our web site. This is how that looks like while input is in progress:

Once Enter key is pressed or control loses input focus the value is resolved to IP address. You can turn this off by setting AutoResolveFreeTextEntries property to false.

Usage of this feature is completely optional. ButtonFreeText property is there so you can hide/show free text button, change its image etc. Using FreeTextEntryMode property you can toggle the free-text entry mode from code. You can also set AutoOffFreeTextEntry property to false to turn-off free-text entry automatically when input field loses focus.

Support for custom parsing of free-text entered values is also included. You do so by handling the ConvertFreeTextEntry event. Here is sample code which converts the string “custom” to an IP address:

private void ipAddressInput1_ConvertFreeTextEntry(object sender, 
    DevComponents.Editors.FreeTextEntryConversionEventArgs e)

    if (e.ValueEntered.ToLower()=="custom")



        e.IsValueConverted = true;



IP Address Input control supports custom popups so you can drop-down any Windows Forms control, custom popup menu items, custom buttons, watermarking, focus highlighting and more.

Download fully functional trial of DotNetBar Suite for Windows Forms now and experience how easy it is to create professional looking applications.