Results 1 to 3 of 3

Thread: [RESOLVED] Put ip address into textboxes

  1. #1

    Thread Starter
    Fanatic Member Arve K.'s Avatar
    Join Date
    Sep 2008
    Location
    Kyrksæterøra, Norway
    Posts
    518

    Resolved [RESOLVED] Put ip address into textboxes

    Hi,

    I hope someone here may help me with my little problem

    How do i put a IP address in four textboxes (like this):

    192.168.1.1

    [192] <-- this is textbox 1
    [168] <-- this is textbox 2
    [1] <-- this is textbox 3
    [1] <-- this is textbox 4

    I hope you understand, im not so good to explain


    _powerade_
    Last edited by Arve K.; Sep 16th, 2009 at 05:11 PM. Reason: major typo :)

  2. #2
    Addicted Member
    Join Date
    Jun 2009
    Posts
    245

    Re: Put ip address into textboxes

    Do you have the IP-adress declared in a string? If so, you could use the string.spilt-function and store the output in to an array. Then you could populate the textboxes from the array.

    If you don't get it, feel free to ask more

  3. #3

    Thread Starter
    Fanatic Member Arve K.'s Avatar
    Join Date
    Sep 2008
    Location
    Kyrksæterøra, Norway
    Posts
    518

    Re: Put ip address into textboxes

    Thank you very much Erik

    The Split function was just what I needed

    Code:
                Dim IP As String = Me.lblFindIPaddress_result.Text
                Dim a As Array = IP.Split(".")
    
                Me.txtQuick_address_1.Text = a(0)
                Me.txtQuick_address_2.Text = a(1)
                Me.txtQuick_address_3.Text = a(2)
                Me.txtQuick_address_4.Text = a(3)
    _powerade_

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width