I have working on windows application in the VS 2010 C#. I have used a Web Browser in my project. My application woks fine till the last week, but i found some problem in that Document Completed event.
Please see my code below.
private void HomeBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (HomeBrowser.ReadyState == WebBrowserReadyState.Complete)
{
if (HomeBrowser.Document != null)
{
...............................
please see the first if
condition in my code. if this condition is not satisfied
rest of the code is not working. I don't know what happened.
Any Idea. Would you please help me as soon as possible.