[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_
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 :)
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_