Answer the question
In order to leave comments, you need to log in
C#. How to handle event only 1 time?
Good afternoon.
Please tell me how to handle the event only 1 time?
webBrowser1.Document.Click += webBrowser1_Browser_Mouse_Moved;
private void webBrowser1_Browser_Mouse_Moved(object sender, HtmlElementEventArgs e)
{
string element = webBrowser1.Document.GetElementFromPoint(e.ClientMousePosition).GetAttribute("href");
Debug.WriteLine(element);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question