private void con_showGrid_CheckedChanged(object sender, EventArgs e) { //Change the background and the setting. RightSplit.Panel2.BackgroundImage = (Settings.Default.ShowGrid = con_showGrid.Checked) ? //If Resources.grid : null; //True-False }