Показать сообщение отдельно

  #7  
Старый 11.05.2010, 23:20
cheater_man
Постоянный
Регистрация: 13.11.2009
Сообщений: 437
Провел на форуме:
709575

Репутация: 17
По умолчанию

Проблема решена)
С# код
Код:
string curr = wb.Url.ToString();
            if (curr.Equals("http://limoncash.com/"))
            {
                wb.Document.GetElementById("form[user]").InnerText = textBox1.Text;
                wb.Document.GetElementById("form[password]").InnerText = textBox2.Text;
                wb.Document.GetElementById("enter").Focus();
                SendKeys.Send("{ENTER}");
                do
                {
                    Application.DoEvents();

                } while (wb.IsBusy != false);
            }
            else if (curr.Equals("http://limoncash.com/?mod=news&page=1"))
            {
                MessageBox.Show("Yes");
                wb.Stop();
            }
            else
            {
                MessageBox.Show("No");
                wb.Stop();
            }          
        }
 
Ответить с цитированием