티스토리 뷰
WebBrowser.Navigate 명령 이후, 웹페이지가 완전히 로딩 될 때까지 기다리게하는 예제이다.
WebBrowser.ReadyState를 이용해서 완료상태를 체크한다.
using System.Threading;
using System.Windows.Forms;
namespace MyBrowser
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.webBrowser1.Navigate("http://www.tistory.com");
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
{
Thread.Sleep(100);
Application.DoEvents();
}
MessageBox.Show("Done");
}
}
}
WebBrowser.ReadyState를 이용해서 완료상태를 체크한다.
using System.Threading;
using System.Windows.Forms;
namespace MyBrowser
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.webBrowser1.Navigate("http://www.tistory.com");
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
{
Thread.Sleep(100);
Application.DoEvents();
}
MessageBox.Show("Done");
}
}
}
'Code > C#' 카테고리의 다른 글
Process 목록 출력 샘플코드 (0) | 2008.04.17 |
---|---|
AxWebBrowser.ReadyState 샘플코드 (0) | 2008.04.16 |
RichTextBox AutoResize 샘플코드 (0) | 2008.04.08 |
iTextSharp 샘플코드 - Hello World (0) | 2008.04.08 |
[C#] Object Initializer 사용법 샘플 코드 (0) | 2008.02.11 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- AxWebBrowser
- 애드센스감추기
- READYSTATE_COMPLETE
- jre
- Regular Expressions
- Rollback Rx
- java
- 애드센스숨기기
- Automation
- c#
- 스크린캡쳐
- DotNetMagic
- Phalanger
- Service pack
- 유틸리티
- Sample Code
- download.com
- AdSense숨기기
- iTextSharp
- AdSense감추기
- autohotkey
- .net framework
- ScreenHunter
- tagREADYSTATE
- WinAutomation
- registry
- windows
- Microsoft
- iText
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함