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

.NET 

Recover a HTML in form [VB.NET]

Hello,

How to recover a html page in a form visual basic.
I code in Visual Basic Express 2010.
Regards,
Kulls
PHP Code

<?php 
Textbox1
.text = new WebClient().DownloadString("Link") 

^ Short way, i recommend using webrequests, but it depends on what you're trying to do.
AMD Ryzen 5 5600X AM4 Tray
Gigabyte B550M AORUS PRO-P
Corsair DDR 4 16G (8Gx2) 3200 CL16 VENGEANCE LPX Black
ANTEC PSU 750W High Current Gamer 80+ Gold Fully Modular
Gigabyte RTX 3060 Ti GAMINGOC PRO-8GD
A-DATA SSD 512GB XPG SX8200 Pro M.2 2280
WD HDD 1.0TB 5400 64MB SATA3 Blue 3.5
(Jan 26, 2015 09:59 AM)iSynthesis Wrote:  
PHP Code

<?php 
Textbox1
.text = new WebClient().DownloadString("Link") 

^ Short way, i recommend using webrequests, but it depends on what you're trying to do.

Meh, WebClient'll do just fine for downloading a page. Should dispose of it though.
(Jan 26, 2015 10:07 AM)Odus Wrote:  Meh, WebClient'll do just fine for downloading a page. Should dispose of it though.

Use "Using"

E.g.
Code
Using OPsAFag As New WebClient
    textbox1.text = OPsAFag.DownloadString("Link")
End Using
[Image: vjPWhyy.gif]


Possibly Related Threads...
Thread / Author Replies Views Last Post
by HackersNov 11, 2025 09:42 AM 0 202 Nov 11, 2025 09:42 AM
Last Post: Hackers
[Python] by d3v1l0alJun 14, 2017 11:04 AM 6 304 Jun 14, 2017 11:04 AM
Last Post: Morphine
[Python] by 44kriegerFeb 13, 2016 08:39 AM 4 163 Feb 13, 2016 08:39 AM
Last Post: Feanor