Click to See Complete Forum and Search --> : Gettin my DNS in Visual Basic
rOCk-MaStEr
September 16th, 2004, 07:16 PM
well am a Beginner and i'm trying to do sumthing..
i need my DNS to be in a TEXT when i load the Project.. i mean when i run it my DNS comes in a TEXT..
hope to get full explination how to do it..
hiddeninclouds
September 16th, 2004, 10:43 PM
Can you reword your post please? I don't understand what you're talking about
gothic_type
September 17th, 2004, 12:19 AM
Do you mean that you need to take your DNS info (a number?) and convert it into text or something like that? Doesn't sound right, though...
ac
rOCk-MaStEr
September 17th, 2004, 02:18 AM
no i dont want to convert it ( i need to take the DNS number and put it in a TEXT FIELD when the project loads !
hiddeninclouds
September 17th, 2004, 06:05 AM
For that you would use functions located in system.net.dns
here is an example that would get the ipaddress:
Dim ipaddress As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHost)
This passes your computers name to a function that returns an array of your ipaddress
then convert the array into a string and place it into the textbox
does this help? For more info google should get you what you need :)
rOCk-MaStEr
September 17th, 2004, 07:25 AM
i think this also get the IP address but i need to get the DNS
rOCk-MaStEr
September 17th, 2004, 07:27 AM
me.winsock1.localip = text1.text sum1 told me that this get the ip <<
hiddeninclouds
September 18th, 2004, 09:17 AM
What do you mean by the DNS?
gothic_type
September 18th, 2004, 10:01 PM
lol...and converting it into text is different from putting it into a text field? For the sake of answering a question, the difference is non-existant.
ac
rOCk-MaStEr
September 20th, 2004, 03:17 AM
i got it guyz thx anywayz for who tried to help finally Google got me what i want..
i wanna ask for sumthing more easier how to open a URL on click of button or whatever a label