Click here to Skip to main content
15,889,116 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Selected Text Pin
DigiOz Multimedia16-Aug-07 4:07
DigiOz Multimedia16-Aug-07 4:07 
QuestionSelect all from datagridview Pin
Froz3n15-Aug-07 8:27
Froz3n15-Aug-07 8:27 
AnswerRe: Select all from datagridview Pin
Taylor Kobani15-Aug-07 8:42
Taylor Kobani15-Aug-07 8:42 
GeneralRe: Select all from datagridview Pin
Froz3n15-Aug-07 8:58
Froz3n15-Aug-07 8:58 
GeneralRe: Select all from datagridview Pin
Taylor Kobani16-Aug-07 0:21
Taylor Kobani16-Aug-07 0:21 
Questionhow to open an URL and save the content? Pin
kevindotnet15-Aug-07 3:44
kevindotnet15-Aug-07 3:44 
AnswerRe: how to open an URL and save the content? Pin
MidwestLimey15-Aug-07 8:16
professionalMidwestLimey15-Aug-07 8:16 
AnswerRe: how to open an URL and save the content? Pin
DigiOz Multimedia15-Aug-07 8:37
DigiOz Multimedia15-Aug-07 8:37 
Here is a function that lets you do that:

    Public Function GetWebPageResult(ByVal webPG As String) As String<br />
        Dim myHttpWebRequest As HttpWebRequest = CType(WebRequest.Create(webPG), HttpWebRequest)<br />
<br />
        Dim myHttpWebResponse As HttpWebResponse = CType(myHttpWebRequest.GetResponse(), HttpWebResponse)<br />
<br />
        Dim receiveStream As Stream = myHttpWebResponse.GetResponseStream()<br />
<br />
        Dim encode As System.Text.Encoding = System.Text.Encoding.GetEncoding("utf-8")<br />
<br />
        Dim readStream As New StreamReader(receiveStream, encode)<br />
        GetWebPageResult = readStream.ReadToEnd() ' Use this 'readStream' where ever you want.<br />
<br />
    End Function


Just call this function and pass the webpage URL to it. It will grab the html content of the page and return it as a string as the result of the function.


Pete Soheil
DigiOz Multimedia
http://www.digioz.com

GeneralRe: how to open an URL and save the content? Pin
Luc Pattyn15-Aug-07 9:14
sitebuilderLuc Pattyn15-Aug-07 9:14 
GeneralRe: how to open an URL and save the content? Pin
DigiOz Multimedia15-Aug-07 10:58
DigiOz Multimedia15-Aug-07 10:58 
GeneralRe: how to open an URL and save the content? Pin
MidwestLimey15-Aug-07 10:33
professionalMidwestLimey15-Aug-07 10:33 
GeneralRe: how to open an URL and save the content? Pin
kevindotnet17-Aug-07 2:15
kevindotnet17-Aug-07 2:15 
QuestionConsole window Pin
MatthysDT15-Aug-07 3:29
MatthysDT15-Aug-07 3:29 
AnswerRe: Console window Pin
leckey15-Aug-07 6:22
leckey15-Aug-07 6:22 
AnswerRe: Console window Pin
DigiOz Multimedia15-Aug-07 11:52
DigiOz Multimedia15-Aug-07 11:52 
QuestionHow to send message contain a string ? Pin
Ky Nam15-Aug-07 3:10
Ky Nam15-Aug-07 3:10 
AnswerRe: How to send message contain a string ? Pin
Luc Pattyn15-Aug-07 3:32
sitebuilderLuc Pattyn15-Aug-07 3:32 
GeneralRe: How to send message contain a string ? Pin
Ky Nam15-Aug-07 3:51
Ky Nam15-Aug-07 3:51 
GeneralRe: How to send message contain a string ? Pin
Luc Pattyn15-Aug-07 4:01
sitebuilderLuc Pattyn15-Aug-07 4:01 
GeneralRe: How to send message contain a string ? Pin
Ky Nam15-Aug-07 5:06
Ky Nam15-Aug-07 5:06 
Questioncryptostream Pin
WhiteGirl2315-Aug-07 1:45
WhiteGirl2315-Aug-07 1:45 
AnswerRe: cryptostream Pin
kubben15-Aug-07 2:17
kubben15-Aug-07 2:17 
GeneralI need answer please Pin
thaora15-Aug-07 1:41
thaora15-Aug-07 1:41 
GeneralRe: I need answer please [modified] Pin
GuyThiebaut15-Aug-07 2:52
professionalGuyThiebaut15-Aug-07 2:52 
GeneralRe: I need answer please Pin
leckey15-Aug-07 3:15
leckey15-Aug-07 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.