Quantcast
Viewing all articles
Browse latest Browse all 27016

Getting Definition From Urban Dictionary

Hello guys I am new to this forum and was hoping to get some help. I am trying to make an application in which the user inputs a word into a textbox, presses the button, and a messagebox pops up with the definition from urban dictionary. I am not to familiar with web based things, php and whatnot, so I was hoping somebody could revise this code for me and help me get this working. Any help would be greatly appreciated and here is the code :

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.ScrollBarsEnabled = False
WebBrowser1.ScriptErrorsSuppressed = True
WebBrowser1.Navigate(("http://www.urbandictionary.com/define.php?term=" & textbox1.text))
Dim definition As String = WebBrowser1.Document.GetElementsByTagName("meta").Item(0).GetAttribute("content")
MsgBox(definition)
End Sub

Viewing all articles
Browse latest Browse all 27016

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>