Re: Prompting for an IP address

Tech-Archive recommends: Fix windows errors by optimizing your registry



In 2005 the MaskedTextbox is back, you could use that one.

Greetz, Peter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"iwdu15" <jmmgoalsteratyahoodotcom> schreef in bericht
news:F569EFAD-01C1-4E89-8733-D2978820AADC@xxxxxxxxxxxxxxxx
There is none that i know of, however, you can just put a textbox for the
user to input the IP in, put a restriction on how many characters they can
input, then use the following code to parse it to an IPAddress object

2003:

Dim ip As IPAddress = DNS.Resolve(Me.TextBox1.Text).AddressList(0)

2005:

Dim ip As IPAddress = DNS.GetHostEntry(Me.TextBox1.Text).AddressList(0)


hope this helps
--
-iwdu15


.



Relevant Pages

  • Re: saved bitmap size
    ... Peter Proost wrote: ... Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. ... Dim i As Integer ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Convert seconds since Jan 1, 1970
    ... Dim timeElapsed As TimeSpan = TimeSpan.FromSeconds ... Programming today is a race between software engineers striving to build ... bigger and better idiots. ... So far, the Universe is winning. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Client IP behind Load Balancer
    ... and the Universe trying to produce bigger and better idiots. ... So far, the Universe is winning. ... > BigIP as its default gateway. ... >> Programming today is a race between software engineers ...
    (microsoft.public.inetserver.iis)
  • Re: Versions
    ... Programming today is a race between software engineers striving to build ... bigger and better idiots. ... So far, the Universe is winning. ... > Again a distinction between language and product name;-) ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Email attachments?
    ... Greetz Peter :-) ... Programming today is a race between software engineers striving to build ... bigger and better idiots. ... So far, the Universe is winning. ...
    (microsoft.public.dotnet.languages.vb)