This program redraws its graph to fit the form when the form is resized. It draws dashed horizontal and vertical lines showing selected X and Y coordinate values. See the code for further details.