Drag a button from the toolbox onto the new dialog resource. Double click the button, and add the MessageBox call. Then build and run.