C# Webbrowser Control: loop through a List
hi all,
i am using webbrowser control in windows aplication . i was writting some logic in webBrowser1_DocumentCompleted() method
i am using list to navigate webbrowser control but web browser control not wait for first FanMailSiteName in list it process second..third and so on
here is my code snippet please help ASAP
foreach (AdvisorDetail ad in adList)
{
DownloadFilePath = ad.Path;
Username = ad.UserName;
Password = ad.Password;
FanMailSiteName = ad.URL;
Advisorname = ad.AdvisorName;
SignIN();
{
webBrowser1.Navigate(FanMailSiteName);
}
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
//some logic here
}