Click here to Skip to main content
16,009,112 members
Home / Discussions / C#
   

C#

 
GeneralRe: Solved! Pin
N a v a n e e t h13-Aug-09 15:37
N a v a n e e t h13-Aug-09 15:37 
GeneralRe: Solved! Pin
Muammar©14-Aug-09 1:16
Muammar©14-Aug-09 1:16 
QuestionTrying to show progress using DownloadDataAsync Pin
steve_rm1-Aug-09 4:23
steve_rm1-Aug-09 4:23 
AnswerRe: Trying to show progress using DownloadDataAsync Pin
Abhijit Jana1-Aug-09 6:18
professionalAbhijit Jana1-Aug-09 6:18 
QuestionRe: Trying to show progress using DownloadDataAsync Pin
Steve1_rm1-Aug-09 6:44
Steve1_rm1-Aug-09 6:44 
AnswerRe: Trying to show progress using DownloadDataAsync Pin
Eddy Vluggen1-Aug-09 7:00
professionalEddy Vluggen1-Aug-09 7:00 
GeneralRe: Trying to show progress using DownloadDataAsync Pin
Steve1_rm1-Aug-09 7:33
Steve1_rm1-Aug-09 7:33 
GeneralRe: Trying to show progress using DownloadDataAsync Pin
Eddy Vluggen1-Aug-09 8:39
professionalEddy Vluggen1-Aug-09 8:39 
Can you verify (using a new project, just for testing) whether this adapted code works as expected?
static void UpdateAvailable()
{
    WebClient wbCheckUpdates = new WebClient();
    wbCheckUpdates.DownloadProgressChanged += new DownloadProgressChangedEventHandler(wbCheckUpdates_DownloadProgressChanged);
    wbCheckUpdates.DownloadDataCompleted += new DownloadDataCompletedEventHandler(wbCheckUpdates_DownloadDataCompleted);
    string webServerURL =
        @"http://download.wikimedia.org/simplewiktionary/20090801/simplewiktionary-20090801-pages-articles.xml.bz2";

    wbCheckUpdates.DownloadDataAsync(new Uri(webServerURL));
}

static void wbCheckUpdates_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
    Console.WriteLine("Download progres: " + e.ProgressPercentage);
}

static void wbCheckUpdates_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e)
{
    // byte[] result = e.Result;
    Console.WriteLine("Completed");
}

static void Main(string[] args)
{
    UpdateAvailable();
    Console.ReadKey();
}


"The human mind ordinarily operates at only ten 10% of its capacity, the rest is overhead for the operating system"

AnswerRe: Trying to show progress using DownloadDataAsync Pin
Luc Pattyn1-Aug-09 8:43
sitebuilderLuc Pattyn1-Aug-09 8:43 
AnswerRe: Trying to show progress using DownloadDataAsync Pin
Alan N1-Aug-09 13:57
Alan N1-Aug-09 13:57 
QuestionConnecting C# application to online MS Access database Pin
Alexander Szmidt1-Aug-09 3:43
Alexander Szmidt1-Aug-09 3:43 
AnswerRe: Connecting C# application to online MS Access database Pin
Dave Kreskowiak1-Aug-09 5:10
mveDave Kreskowiak1-Aug-09 5:10 
AnswerRe: Connecting C# application to online MS Access database Pin
nelsonpaixao1-Aug-09 5:12
nelsonpaixao1-Aug-09 5:12 
AnswerRe: Connecting C# application to online MS Access database Pin
Eddy Vluggen1-Aug-09 7:06
professionalEddy Vluggen1-Aug-09 7:06 
QuestionCan I write programs in C # to Micro Controllers Pin
Nasir131-Aug-09 2:33
Nasir131-Aug-09 2:33 
AnswerRe: Can I write programs in C # to Micro Controllers Pin
DaveyM691-Aug-09 2:47
professionalDaveyM691-Aug-09 2:47 
RantRe: Can I write programs in C # to Micro Controllers Pin
Nasir131-Aug-09 3:58
Nasir131-Aug-09 3:58 
GeneralRe: Can I write programs in C # to Micro Controllers Pin
Dave Kreskowiak1-Aug-09 5:07
mveDave Kreskowiak1-Aug-09 5:07 
GeneralRe: Can I write programs in C # to Micro Controllers Pin
DaveyM691-Aug-09 7:03
professionalDaveyM691-Aug-09 7:03 
AnswerRe: Can I write programs in C # to Micro Controllers Pin
HimanshuJoshi1-Aug-09 3:54
HimanshuJoshi1-Aug-09 3:54 
GeneralRe: Can I write programs in C # to Micro Controllers Pin
Nasir131-Aug-09 4:34
Nasir131-Aug-09 4:34 
RantRe: Can I write programs in C # to Micro Controllers Pin
Nasir131-Aug-09 4:39
Nasir131-Aug-09 4:39 
GeneralRe: Can I write programs in C # to Micro Controllers Pin
OriginalGriff1-Aug-09 4:58
mveOriginalGriff1-Aug-09 4:58 
AnswerRe: Can I write programs in C # to Micro Controllers [modified] Pin
mustang861-Aug-09 16:32
mustang861-Aug-09 16:32 
GeneralRe: Can I write programs in C # to Micro Controllers Pin
OriginalGriff2-Aug-09 0:45
mveOriginalGriff2-Aug-09 0: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.