Click here to Skip to main content
15,886,258 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Hi Digi, thatnks for the reply.
The function is awesome. it works like charm ^^

BTW, i just find out another solution, to share with you guys here =D

I used webclient class, there is a readopen() method to achieve this.

here is a sample class which i get from msdn.

Public Class Test

Public Shared Sub Main(args() As String)
If args Is Nothing OrElse args.Length = 0 Then
Throw New ApplicationException("Specify the URI of the resource to retrieve.")
End If
Dim client As New WebClient()

' Add a user agent header in case the
' requested URI contains a query.
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)")

Dim data As Stream = client.OpenRead(args(0))
Dim reader As New StreamReader(data)
Dim s As String = reader.ReadToEnd()
Console.WriteLine(s)
data.Close()
reader.Close()
End Sub 'Main
End Class 'Test
Big Grin | :-D
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 
GeneralRe: I need answer please Pin
koolprasad200315-Aug-07 20:00
professionalkoolprasad200315-Aug-07 20:00 
Questionhow to create a schedule system Pin
nzuva15-Aug-07 0:37
nzuva15-Aug-07 0:37 
AnswerRe: how to create a schedule system Pin
Christian Graus15-Aug-07 0:46
protectorChristian Graus15-Aug-07 0:46 
QuestionConcatinating RTF Pin
Salman Sheikh15-Aug-07 0:14
Salman Sheikh15-Aug-07 0:14 

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.