Brecham.Obex — An OBEX library for the .NET Framework

TcpipAddressDialog Class

Prompts the user to supply an TCP/IP Address or Hostname.

For a list of all members of this type, see TcpipAddressDialog Members.

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            System.Windows.Forms.ScrollableControl
               System.Windows.Forms.ContainerControl
                  System.Windows.Forms.Form
                     Brecham.Obex.Net.Forms.TcpipAddressDialog

[Visual Basic]
Public Class TcpipAddressDialog
    Inherits Form
[C#]
public class TcpipAddressDialog : Form

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

[C#]
String addr = "192.168.1.101";
Brecham.Obex.Net.Forms.TcpipAddressDialog form
  = new Brecham.Obex.Net.Forms.TcpipAddressDialog();
form.AddressOrHostname = addr;
System.Windows.Forms.DialogResult rslt = form.ShowDialog();
if (rslt == System.Windows.Forms.DialogResult.OK) {
  addr = form.AddressOrHostname;
  return addr;
} else {
  return null;
}

Requirements

Namespace: Brecham.Obex.Net.Forms

Assembly: TransportConnection (in TransportConnection.dll)

See Also

TcpipAddressDialog Members | Brecham.Obex.Net.Forms Namespace