fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. this.Load += new EventHandler(Form1_Load);
  18. }
  19.  
  20. WebBrowser webBrowser1 = new WebBrowser();
  21. void Form1_Load(object sender, EventArgs e)
  22. {
  23. webBrowser1.Navigating += new WebBrowserNavigatingEventHandler(webBrowser1_Navigating);
  24. webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted);
  25. webBrowser1.Dock = DockStyle.Fill;
  26. this.Controls.Add(webBrowser1);
  27.  
  28. webBrowser1.Navigate("http://t...content-available-to-author-only...h.net/test/read.cgi/tech/1346940693/");
  29. }
  30. int count = 0;
  31. void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
  32. {
  33. System.Threading.Interlocked.Increment(ref count);
  34. this.Text = count.ToString();
  35. }
  36.  
  37. void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
  38. {
  39. System.Threading.Interlocked.Decrement(ref count);
  40. if (count == 0)
  41. {
  42. }
  43. }
  44. }
  45. }
  46.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty