![]() |
|
[.NET] [Easy][TUT] Reading Text From a Webpage - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] [Easy][TUT] Reading Text From a Webpage (/showthread.php?tid=1414780) |
[Easy][TUT] Reading Text From a Webpage - Phriendly - Jun 24, 2011 So This Tutorial is based around reading ASCII from a txt file or maybe even an HTML on a webpage for such things as a News updater on the sidebar of a program. So 1st off create a Form and add: 1 Button and A Textbox set to multiline Spoiler (Click to View) [IMG]http://i295.photobucket.com/albums/mm124/tanman39/HFTUT1.png[/IMG] Then add this under Public Form 1: Dim webclient As New System.Net.WebClient Then go back to your form and double click the button you added; add this code: Textbox1.Text = System.Text.Encoding.ASCII.GetString(( _ webclient.DownloadData("http://example.org/tutorial.txt"))) Change your button text to something like 'Update' or 'Refresh' This was my first tutorial and if you found it helpful please comment ✌ * - Crash-Override - Jun 25, 2011 Nice contribution to the coding forum. 5 stars. * - Phriendly - Jun 25, 2011 Thank you Crash-Override. Commenting is appreciated :) * - Crash-Override - Jun 25, 2011 (Jun 25, 2011 12:12 AM)Phriendly Wrote: Thank you Crash-Override. You are welcome. +1 for you still being a new member and posted a vb.net tutorial rather than posting a thread "help me with crypter plox" . * - Phriendly - Jun 25, 2011 Well I find it silly when people try to make things that they don't understand/ know how to make. I'm going to this because i think it could help a lot of people :) * - soft2050 - Jun 26, 2011 Hmm! Nice one But you could even try this one: PHP Code The result is same in the end i believe :) * - Phriendly - Jun 26, 2011 haha i guess... works either way |