Test the Checked property of the CheckBox and, if it's True, assign the Text property values of the TextBoxes to the My.Settings properties. That's all there is to it: four lines of code.