private void startAtLogin_CheckedChanged(object sender, EventArgs e) { if (myStartAtLoginCheckBox.Checked) { AutostartUility.SetAutoStart(myApplicationKey, Assembly.GetExecutingAssembly().Location); } else { AutostartUility.UnSetAutoStart(myApplicationKey); } }