Click here to Skip to main content
16,005,316 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionoutlook express [modified] Pin
microuser_200012-Jul-06 5:25
microuser_200012-Jul-06 5:25 
AnswerRe: outlook express Pin
Dave Kreskowiak12-Jul-06 6:50
mveDave Kreskowiak12-Jul-06 6:50 
GeneralRe: outlook express Pin
microuser_200012-Jul-06 11:37
microuser_200012-Jul-06 11:37 
GeneralRe: outlook express Pin
Dave Kreskowiak12-Jul-06 12:17
mveDave Kreskowiak12-Jul-06 12:17 
GeneralRe: outlook express Pin
microuser_200012-Jul-06 20:41
microuser_200012-Jul-06 20:41 
GeneralRe: outlook express Pin
microuser_200012-Jul-06 21:27
microuser_200012-Jul-06 21:27 
GeneralRe: outlook express Pin
Dave Kreskowiak13-Jul-06 1:25
mveDave Kreskowiak13-Jul-06 1:25 
QuestionAsync. Download Of Binary Files - VB 2005?? [modified] Pin
.::ELITE::.12-Jul-06 3:32
.::ELITE::.12-Jul-06 3:32 
I am trying to download files in VB 2005 Asynchronously (To avoid UI JAM) , I need to post the filename to the server and the file is being supplied as server response. Pls. guide. This is what I am currrently using but its OK for Text, Html files.

Public Sub PostData(ByVal strURL As String, Optional ByVal POST1  As String = "")

        ' Declare a variable named client of type WebClient.
        Dim myWebClient As WebClient
        ' Instantiate a WebClient object and assign it to the 'client' variable.
        myWebClient = New WebClient

        ' Add handler to process theWebClient's DownloadProgressChanged events.
        AddHandler myWebClient.UploadProgressChanged, AddressOf UploadProgress

        ' Add handler to process theWebClient's DownloadCompleted event.
        AddHandler myWebClient.UploadStringCompleted, AddressOf UploadCompleted

        ' Declare a variable named downloadUri of type Uri
        Dim downloadUri As Uri
        ' Instantiate a new Uri object and assign it to the 'downloadUri' variable.
        downloadUri = New Uri(strURL)

        myWebClient.Headers.Add("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4")
        'myWebClient.Headers.Add("Accept-Language", "en-us,en;q=0.5")

        Try
            
           
                myWebClient.UploadStringAsync(downloadUri, "filename=" &POST1)
            End If

        Catch e As System.Net.WebException
            MsgBox("A web exception has occured [" & strURL & "]." & vbCrLf & " System returned: " & e.Message, MsgBoxStyle.Exclamation, "Error!")
            Exit Try

        Catch e As System.Net.ProtocolViolationException
            MsgBox("A protocol violation has occured [" & strURL & "]." & vbCrLf & "  System returned: " & e.Message, MsgBoxStyle.Exclamation, "Error!")
            Exit Try

        Catch e As System.Net.Sockets.SocketException
            MsgBox("Socket error [" & strURL & "]." & vbCrLf & "  System returned: " & e.Message, MsgBoxStyle.Exclamation, "Error!")
            Exit Try

        Catch e As System.IO.EndOfStreamException
            MsgBox("An IO stream exception has occured. System returned: " & e.Message, MsgBoxStyle.Exclamation, "Error!")
            Exit Try

        End Try



    End Sub

JokeRe: Async. Download Of Binary Files - VB 2005?? Pin
.::ELITE::.12-Jul-06 17:04
.::ELITE::.12-Jul-06 17:04 
NewsRe: Async. Download Of Binary Files - VB 2005?? Pin
.::ELITE::.13-Jul-06 3:22
.::ELITE::.13-Jul-06 3:22 
GeneralRe: Async. Download Of Binary Files - VB 2005?? Pin
Dave Kreskowiak13-Jul-06 5:26
mveDave Kreskowiak13-Jul-06 5:26 
QuestionPassing Parameter to stored procedure using vb.net Pin
mamathy12-Jul-06 0:55
mamathy12-Jul-06 0:55 
AnswerRe: Passing Parameter to stored procedure using vb.net Pin
Reza Raad12-Jul-06 2:26
Reza Raad12-Jul-06 2:26 
QuestionSaving data in a DB and in a TXT at same time Pin
Bruno Gonçalves12-Jul-06 0:30
Bruno Gonçalves12-Jul-06 0:30 
AnswerRe: Saving data in a DB and in a TXT at same time Pin
mr_lasseter12-Jul-06 2:34
mr_lasseter12-Jul-06 2:34 
QuestionCrystal report Failed to load (Concern with Deployment) Pin
nikhil marathe12-Jul-06 0:29
nikhil marathe12-Jul-06 0:29 
AnswerRe: Crystal report Failed to load (Concern with Deployment) Pin
Dave Sexton12-Jul-06 3:30
Dave Sexton12-Jul-06 3:30 
QuestionThree tables, 3 Combobox in a single form, HELP! [modified] Pin
abbasy12-Jul-06 0:09
abbasy12-Jul-06 0:09 
QuestionRe: Three tables, 3 Combobox in a single form, HELP! Pin
fredde_d12-Jul-06 3:52
fredde_d12-Jul-06 3:52 
AnswerRe: Three tables, 3 Combobox in a single form, HELP! Pin
abbasy12-Jul-06 16:46
abbasy12-Jul-06 16:46 
GeneralRe: Three tables, 3 Combobox in a single form, HELP! Pin
fredde_d12-Jul-06 22:04
fredde_d12-Jul-06 22:04 
GeneralRe: Three tables, 3 Combobox in a single form, HELP! [modified] Pin
abbasy13-Jul-06 0:11
abbasy13-Jul-06 0:11 
GeneralRe: Three tables, 3 Combobox in a single form, HELP! Pin
fredde_d13-Jul-06 1:40
fredde_d13-Jul-06 1:40 
GeneralRe: Three tables, 3 Combobox in a single form, HELP! Pin
abbasy13-Jul-06 17:29
abbasy13-Jul-06 17:29 
QuestionActive Directory Site Query Pin
SWoll11-Jul-06 23:45
SWoll11-Jul-06 23:45 

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.