private void disableToolStripMenuItem_Click(object sender, EventArgs e) { if (StartUpManager.IsUserAdministrator()) { // Will Remove application to All Users StartUp StartUpManager.RemoveApplicationFromAllUserStartup(); } else { // Will Remove application to Current Users StartUp StartUpManager.RemoveApplicationFromCurrentUserStartup(); } }