Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML Grabber v1
#8
Like I mentioned on my forum, no need to give up just from someone else throwing words at you when you were proud of the work yourself to begin with.

Here's how I would have done your application though:
Code:
Private Sub GetURLSource_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GetURLSource.Click
    Dim wc As New WebClient()
    RichTextBox1.Text = wc.DownloadString(TextBox1.Text)
End Sub

Private Sub Clear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Clear.Click
    RichTextBox1.Clear()
End Sub

Private Sub CopyHTML_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CopyHTML.Click
    RichTextBox1.Copy()
End Sub

Private Sub SaveHTML_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveHTML.Click
    Dim sw As New StreamWriter("file.txt")
    sw.Write(RichTextbox1.Text)
    sw.Close()
    sw.Dispose()
End Sub

In it's simplest form, without error handling or anything, that should do the trick.
Reply


Messages In This Thread
HTML Grabber v1 - by BreShiE - 02-06-2012, 06:23 AM
RE: HTML Grabber v1 - by Fragma - 02-06-2012, 06:33 AM
RE: HTML Grabber v1 - by AceInfinity - 02-06-2012, 07:17 AM
RE: HTML Grabber v1 - by AceInfinity - 02-06-2012, 07:17 AM
RE: HTML Grabber v1 - by Fragma - 02-06-2012, 07:23 AM
RE: HTML Grabber v1 - by AceInfinity - 02-06-2012, 07:29 AM
RE: HTML Grabber v1 - by BreShiE - 02-06-2012, 08:02 AM
RE: HTML Grabber v1 - by AceInfinity - 02-06-2012, 08:19 AM
RE: HTML Grabber v1 - by BreShiE - 02-06-2012, 08:24 AM
RE: HTML Grabber v1 - by AceInfinity - 02-06-2012, 08:40 AM
RE: HTML Grabber v1 - by BreShiE - 02-06-2012, 10:33 AM
RE: HTML Grabber v1 - by AceInfinity - 02-06-2012, 11:11 AM
RE: HTML Grabber v1 - by BreShiE - 02-08-2012, 09:49 AM
RE: HTML Grabber v1 - by AceInfinity - 02-08-2012, 08:29 PM
RE: HTML Grabber v1 - by kpn37z - 06-24-2012, 04:33 AM
RE: HTML Grabber v1 - by Kenneth - 08-11-2012, 11:45 PM
RE: HTML Grabber v1 - by AceInfinity - 08-12-2012, 01:53 PM
RE: HTML Grabber v1 - by spesificrelax - 09-08-2012, 04:18 PM
RE: HTML Grabber v1 - by rqmok - 09-28-2012, 01:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Source] Proxy Grabber [Cool] Hell Guardian 12 9,178 04-07-2015, 11:46 AM
Last Post: polas
  EzInfo Source | Computer Information Grabber Die 3 2,016 01-03-2012, 02:07 PM
Last Post: Die
  Website IP Grabber VeNoMz 24 5,645 07-30-2011, 09:01 AM
Last Post: Trustable
  [Pandora Incorporated] Visual Basic 2008 - Source Code Grabber [VIDEO TUTORIAL] Marikā„¢ 13 4,666 05-23-2011, 06:41 PM
Last Post: KoBE
  Html Color Helper the_legend_nl 6 1,955 11-10-2010, 12:14 AM
Last Post: the_legend_nl

Forum Jump:


Users browsing this thread: 2 Guest(s)