Adding Visual Studio Setup project.
2 using System.Collections.Generic;
3 using System.ComponentModel;
8 using System.Windows.Forms;
10 namespace BackgroundWorkerDemo
12 public partial class ProgressForm : Form
19 set { labelMessage.Text = value; }
22 public int ProgressValue
24 set { progressBar1.Value = value; }
33 InitializeComponent();
40 public event EventHandler<EventArgs> Canceled;
42 private void buttonCancel_Click(object sender, EventArgs e)
44 // Create a copy of the event to work with
45 EventHandler<EventArgs> ea = Canceled;
46 /* If there are no subscribers, eh will be null so we need to check
47 * to avoid a NullReferenceException. */