MouseDown도 사용할 수 없습니다. 마우스 이벤트가 DOM에 전송되기 때문입니다. HtmlElement.AttachEventHandler() 메소드를 사용하여 DOM 이벤트를 구독 할 수 있습니다. 예 :
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
webBrowser1.Url = new Uri("http://stackoverflow.com");
webBrowser1.DocumentCompleted += webBrowser1_DocumentCompleted;
}
void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) {
webBrowser1.Document.Body.AttachEventHandler("ondblclick", Document_DoubleClick);
}
void Document_DoubleClick(object sender, EventArgs e) {
MessageBox.Show("double click!");
}
}
Perfect! 고맙습니다. –