I added the line below in my if-else statement to check the CURRENT url whether or not the login was successful.

rtb.AppendText(wb.Url.ToString() + "\n");

Problem: My form does not do the above. For some odd reason, if I use incorrect login details, it shows the error.php page saying invalid username/password, but my form says the login is successful. This is where the line above comes in useful. It writes http://www.just-a-website.com/index.php, but the page is on http://www.just-a-website.com/error.php. Ofcourse it says the login is successful...

A few months ago, I programmed two similar applications. Three weeks ago, both were still working flawless. Because of my current problem, I tested both yesterday, and they are doing the same thing: wrong login details -> login successful ??

Re: DocumentCompleted event is tripping

Posted 01 May 2011 - 12:00 PM

I have no idea about that site. Forwarding... frames... Because the web designer wanted it that way so outsiders weren't eating up all their bandwidth and resources... so that people have to actually use the proper navigation of their site instead of trying to hardcode links to it... ???

The important thing is that you've a little about how to debug your applications, and can now explain the unexpected behavior.

error CS0446: Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'?
error CS1579: foreach statement cannot operate on variables of type 'method group' because 'method group' does not contain a public definition for 'GetEnumerator'

How do I get the foreach statement to work with this AxWebBrowser? Anyone able to help me out?