fork download
  1. partial class TimedBGWTest {
  2. /// <summary>
  3. /// Required designer variable.
  4. /// </summary>
  5. private System.ComponentModel.IContainer components=null;
  6.  
  7. /// <summary>
  8. /// Clean up any resources being used.
  9. /// </summary>
  10. /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  11. protected override void Dispose(bool disposing) {
  12. if(disposing&&(components!=null)) components.Dispose();
  13. base.Dispose(disposing);
  14. }
  15.  
  16. #region Windows Form Designer generated code
  17.  
  18. /// <summary>
  19. /// Required method for Designer support - do not modify
  20. /// the contents of this method with the code editor.
  21. /// </summary>
  22. private void InitializeComponent() {
  23. this.bgw = new System.ComponentModel.BackgroundWorker();
  24. this.button1 = new System.Windows.Forms.Button();
  25. this.buttonCancel = new System.Windows.Forms.Button();
  26. this.progressBar1 = new System.Windows.Forms.ProgressBar();
  27. this.SuspendLayout();
  28. //
  29. // bgw
  30. //
  31. this.bgw.WorkerReportsProgress = true;
  32. this.bgw.WorkerSupportsCancellation = true;
  33. this.bgw.DoWork += new System.ComponentModel.DoWorkEventHandler(this.bgw_DoWork);
  34. this.bgw.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.bgw_ProgressChanged);
  35. this.bgw.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.bgw_RunWorkerCompleted);
  36. //
  37. // button1
  38. //
  39. this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
  40. this.button1.ForeColor = System.Drawing.Color.Black;
  41. this.button1.Location = new System.Drawing.Point(12, 12);
  42. this.button1.Name = "button1";
  43. this.button1.Size = new System.Drawing.Size(153, 23);
  44. this.button1.TabIndex = 0;
  45. this.button1.Text = "Start";
  46. this.button1.UseVisualStyleBackColor = false;
  47. this.button1.Click += new System.EventHandler(this.buttonStart_Click);
  48. //
  49. // buttonCancel
  50. //
  51. this.buttonCancel.BackColor = System.Drawing.Color.LightGray;
  52. this.buttonCancel.Enabled = false;
  53. this.buttonCancel.ForeColor = System.Drawing.Color.Black;
  54. this.buttonCancel.Location = new System.Drawing.Point(171, 12);
  55. this.buttonCancel.Name = "buttonCancel";
  56. this.buttonCancel.Size = new System.Drawing.Size(75, 23);
  57. this.buttonCancel.TabIndex = 1;
  58. this.buttonCancel.Text = "Cancel";
  59. this.buttonCancel.UseVisualStyleBackColor = false;
  60. this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
  61. //
  62. // progressBar1
  63. //
  64. this.progressBar1.Location = new System.Drawing.Point(12, 41);
  65. this.progressBar1.Name = "progressBar1";
  66. this.progressBar1.Size = new System.Drawing.Size(234, 22);
  67. this.progressBar1.TabIndex = 2;
  68. //
  69. // GUI1
  70. //
  71. this.BackColor = System.Drawing.Color.Black;
  72. this.ClientSize = new System.Drawing.Size(259, 75);
  73. this.Controls.Add(this.progressBar1);
  74. this.Controls.Add(this.buttonCancel);
  75. this.Controls.Add(this.button1);
  76. this.ForeColor = System.Drawing.Color.White;
  77. this.Name = "GUI1";
  78. this.Text = "Timed BGW Test";
  79. this.ResumeLayout(false);
  80.  
  81. }
  82.  
  83. #endregion
  84.  
  85. private System.ComponentModel.BackgroundWorker bgw;
  86. private System.Windows.Forms.Button button1;
  87. private System.Windows.Forms.Button buttonCancel;
  88. private System.Windows.Forms.ProgressBar progressBar1;
  89. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(11,26): error CS0115: `TimedBGWTest.Dispose(bool)' is marked as an override but no suitable method found to override
prog.cs(86,25): error CS0234: The type or namespace name `Forms' does not exist in the namespace `System.Windows'. Are you missing `System.Windows.Forms' assembly reference?
prog.cs(87,25): error CS0234: The type or namespace name `Forms' does not exist in the namespace `System.Windows'. Are you missing `System.Windows.Forms' assembly reference?
prog.cs(88,25): error CS0234: The type or namespace name `Forms' does not exist in the namespace `System.Windows'. Are you missing `System.Windows.Forms' assembly reference?
Compilation failed: 4 error(s), 0 warnings
stdout
Standard output is empty