question

YRK-33345 avatar image
0 Votes"
YRK-33345 asked ·

how to do a document completed void to a web browser variable?

I want to do a function when the browser complete to load the document but it's in variable

dotnet-csharp
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@79973228
Could you please describe it in more detail?
What type of project are you building, ASP.Net or Winform or other?
What does your current code achieve?
The more detailed the information, the faster we can understand what you mean and try to help.

0 Votes 0 ·

@TimonYang-MSFT i create a web brawser variable and i want to do a function whene the brawser complete load the documant, how?

0 Votes 0 ·

1 Answer

TimonYang-MSFT avatar image
0 Votes"
TimonYang-MSFT answered ·

I think you should need WebBrowser.DocumentCompleted Event.

         private void Form1_Load(object sender, EventArgs e)
         {
             WebBrowser WebBrowser = new WebBrowser();
             WebBrowser.DocumentCompleted += WebBrowser_DocumentCompleted;
         }
    
         private void WebBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
         {
            //do your function
         }

If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thank you!

0 Votes 0 ·