If I understood you correctly... you'd need to wait for the document to fully load (adding a DocumentComplete event handler), and, on that handler, parse the document as you wish.
On your example (in bold, the added things):
private void LoadDocument()
{
try
{
System.Windows.Forms.WebBrowser ChkStatus = new System.Windows.Forms.WebBrowser();
ChkStatus.DocumentCompleted += ShowDocumentOnAMessageBox;
ChkStatus.Navigate("http://MySite.Com//login.php?usr=" + frmMain._userID + "&pwd=" + frmMain._LoginPass );
}
catch (Exception ex)
{
MessageBox.Show("Error");
}
finally
{
}
}
private void ShowDocumentOnAMessageBox(object sender,
WebBrowserDocumentCompletedEventArgs e)
{
MessageBox.Show(((WebBrowser)sender).DocumentText);
((WebBrowser)sender).Dispose();
}
Before I speak, I have something important to say.