Visual Basic Pomoc

poruka: 2
|
čitano: 1.815
|
moderatori: Lazarus Long, XXX-Man, vincimus
1
+/- sve poruke
ravni prikaz
starije poruke gore
10 godina
neaktivan
offline
Visual Basic Pomoc

Trebam pomoc .

 

Znaci imam ovaj code

 

Dim the_request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://gatherproxy.com/proxylist/port/8080")
Dim the_response As System.Net.HttpWebResponse = the_request.GetResponse
Dim stream_reader As System.IO.StreamReader = New System.IO.StreamReader(the_response.GetResponseStream())
Dim code As String = stream_reader.ReadToEnd
Dim expression As New System.Text.RegularExpressions.Regex("[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:[0-9]{1,4}")
Dim mtac As MatchCollection = expression.Matches(code)
For Each itemcode As Match In mtac
ListBox1.Items.Add(itemcode)
Next

 

 

Kako da sada umjesto ovoga sajta gatherproxy , ucitava nesto sto je u TexBox1

Moj PC  
0 0 hvala 0
12 godina
neaktivan
offline
Re: Visual Basic Pomoc

Je li ti uopše znaš išta iz VB-a? Ja ne bih rekao... To su osnove. TextBox1.Tex krije ono što se nalazi u tom text boxu...

Dim the_request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(TextBox1.Text)

 

Ili ako želiš biti siguran da je uneseno nešto u textbox, staviš if-else blok, inače nije ti baš najbolja praksa raditi sa WebRequestovima bez exception handling-a, stvari lako pucaju. Upoznaj prvo malo VB ako misliš raditi nešto u njemu, ne možeš ovako ništa napraviti.

1
Nova poruka
E-mail:
Lozinka:
 
vrh stranice