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. }
  18.  
  19. private void Form1_Load(object sender, EventArgs e)
  20. {
  21. webBrowser1.Navigate("http://t...content-available-to-author-only...h.net/test/read.cgi/tech/1334380881/");
  22. }
  23. int dccount = 0;
  24. private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
  25. {
  26. dccount++;
  27. }
  28. int ndcount = 0;
  29. private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
  30. {
  31. ndcount++;
  32. }
  33. int ngcount = 0;
  34. string url;
  35. private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
  36. {
  37. ngcount++;
  38. url += e.Url.ToString() + Environment.NewLine;
  39. }
  40.  
  41. private void button1_Click(object sender, EventArgs e)
  42. {
  43. this.Text = "DC =" + dccount.ToString() +
  44. " ND = " + ndcount.ToString() +
  45. " NG = " + ngcount.ToString();
  46. this.textBox1.Text = url;
  47. }
  48. }
  49. }
  50.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty