private void button4_Click(object sender, EventArgs e) { classes.skContextHandler ch = new classes.skContextHandler(); if (removeContext.Checked) { if (!ch.Add()) { MessageBox.Show("Unable to add to windows", "failed"); } } else { if (!classes.skContextHandler.Remove()) { MessageBox.Show("Unable to remove context handler"); } else { MessageBox.Show("context handler removed successfully!"); } } }