Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32065

C# Webbrowser Control: loop through a List

$
0
0
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 advisor 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
}


Viewing all articles
Browse latest Browse all 32065

Trending Articles