Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Removing string from source code

(Jul 27, 2015 03:51 AM)ninen2001 Wrote:  So I wanted to try to use freegeoip.com and get the info from the IP entered in my application and add it to a listbox. The source code of the info from freegoip.com is basically

There is an alternative method you can use for getting information about the IP address that is entered in your application.

Code
Private Sub button1_Click(sender As System.Object, e As System.EventArgs) Handles button1.Click
      WebRequest.Create("htt p://api.predator.wtf/ip2loc/?arguments=" + txt1.Text)
      listbox1.additem = New System.Net.WebClient().DownloadString("htt p://api.predator.wtf/ip2loc/?arguments=" + txt1.Text)
End Sub

textbox1 would have the ip address you want to resolve
listbox1 would then display the results, you can use a textbox instead.
(Jul 27, 2015 05:25 AM)Josh‎ Wrote:  What is with the random "WebRequest.Create" which isn't used, why is a string not in "" and what has this got to to with OPs question?

Yeah i wrote this out on the thread and not on visual studio i missed the ""


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by jasonnixJan 19, 2024 11:44 AM 4 189 Jan 19, 2024 11:44 AM
Last Post: jasonnix
[Python] by GREGORYNov 26, 2019 07:02 AM 2 241 Nov 26, 2019 07:02 AM
Last Post: Kallu609
[C] by MordiciaNov 15, 2019 07:21 PM 3 211 Nov 15, 2019 07:21 PM
Last Post: Mordicia