Using the controls in a program