Click here to Skip to main content
16,004,924 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: DataBind to specific records Pin
Mycroft Holmes20-Jan-09 22:16
professionalMycroft Holmes20-Jan-09 22:16 
GeneralRe: DataBind to specific records Pin
kensai21-Jan-09 9:12
kensai21-Jan-09 9:12 
GeneralRe: DataBind to specific records Pin
Mycroft Holmes21-Jan-09 11:10
professionalMycroft Holmes21-Jan-09 11:10 
QuestionDownloadfileCompleted event Pin
ashok_rgm19-Jan-09 22:22
ashok_rgm19-Jan-09 22:22 
AnswerRe: DownloadfileCompleted event Pin
Eddy Vluggen20-Jan-09 1:17
professionalEddy Vluggen20-Jan-09 1:17 
GeneralRe: DownloadfileCompleted event Pin
ashok_rgm20-Jan-09 22:27
ashok_rgm20-Jan-09 22:27 
GeneralRe: DownloadfileCompleted event Pin
CooperWu21-Jan-09 15:00
CooperWu21-Jan-09 15:00 
GeneralRe: DownloadfileCompleted event Pin
Eddy Vluggen21-Jan-09 21:29
professionalEddy Vluggen21-Jan-09 21:29 
To make it block the execution;
public bool downloadIsDone = false;

public void ZeDownloadMechanism()
{
  objWebClient.DownloadFileCompleted += new System.ComponentModel.AsyncCompletedEventHandler(
    Event_DownloadFileCompleted);

  objWebClient.DownloadFileAsync(new Uri(p_strSourcePath), l_strDestinationPath);

  while (!downloadIsDone)
    Application.DoEvents();

  MessageBox.Show("Updated Successfully");
}

public void Event_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
{
  downloadIsDone = true;
  MessageBox.Show("Download Completed");
} 


Why would you want to block execution on a Async-download?

I are troll Smile | :)

GeneralRe: DownloadfileCompleted event Pin
ashok_rgm22-Jan-09 19:15
ashok_rgm22-Jan-09 19:15 
GeneralRe: DownloadfileCompleted event Pin
Eddy Vluggen22-Jan-09 23:41
professionalEddy Vluggen22-Jan-09 23:41 
QuestionOpening executeable Pin
OsoreWatashi19-Jan-09 3:13
OsoreWatashi19-Jan-09 3:13 
AnswerRe: Opening executeable Pin
Not Active19-Jan-09 3:24
mentorNot Active19-Jan-09 3:24 
AnswerRe: Opening executeable Pin
Eddy Vluggen19-Jan-09 3:33
professionalEddy Vluggen19-Jan-09 3:33 
GeneralRe: Opening executeable Pin
OsoreWatashi19-Jan-09 5:50
OsoreWatashi19-Jan-09 5:50 
GeneralRe: Opening executeable Pin
Eddy Vluggen19-Jan-09 5:55
professionalEddy Vluggen19-Jan-09 5:55 
NewsRe: Opening executeable Pin
OsoreWatashi19-Jan-09 6:35
OsoreWatashi19-Jan-09 6:35 
GeneralRe: Opening executeable Pin
Eddy Vluggen19-Jan-09 8:14
professionalEddy Vluggen19-Jan-09 8:14 
GeneralRe: Opening executeable Pin
OsoreWatashi19-Jan-09 13:59
OsoreWatashi19-Jan-09 13:59 
GeneralRe: Opening executeable Pin
Eddy Vluggen20-Jan-09 0:26
professionalEddy Vluggen20-Jan-09 0:26 
Questionaccessing database from network Pin
jagank2117-Jan-09 3:29
jagank2117-Jan-09 3:29 
AnswerRe: accessing database from network Pin
Colin Angus Mackay17-Jan-09 5:04
Colin Angus Mackay17-Jan-09 5:04 
QuestionStop Child Controls taking on properties of the container they're in? Pin
TheRedEye16-Jan-09 20:05
TheRedEye16-Jan-09 20:05 
AnswerRe: Stop Child Controls taking on properties of the container they're in? Pin
Jon Rista16-Jan-09 20:23
Jon Rista16-Jan-09 20:23 
AnswerRe: Stop Child Controls taking on properties of the container they're in? Pin
TheRedEye16-Jan-09 20:44
TheRedEye16-Jan-09 20:44 
Questionhow to detect when a user is start printing Pin
spiritboy16-Jan-09 9:42
spiritboy16-Jan-09 9:42 

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.