OK, you wanted code - here it is, just one of many ways. I'll leave it to you to figure out what it's doing and how to implement it in your project seeing as we're all the 'dumbass'es ;P Good luck
public class CustomProgressBar : ProgressBar
{
public event EventHandler ValueChanged;
public new int Value
{
get { return base.Value; }
set
{
if (base.Value != value)
{
base.Value = value;
OnValueChanged(EventArgs.Empty);
}
}
}
protected virtual void OnValueChanged(EventArgs e)
{
EventHandler eh = ValueChanged;
if (eh != null)
eh(this, e);
}
}
void customProgressBar_ValueChanged(object sender, EventArgs e)
{
CustomProgressBar cpb = sender as CustomProgressBar;
if (cpb != null)
if (cpb.Value == 100)
new home().Show();
}