Open the MessageBox Value Solution (MessageBox Value Solution. sln) fi le contained in the VB2010\Chap04\MessageBox Value Solution folder. If necessary, open the designer window. Open the Code Editor window. The btnCalc control’s Click event procedure should use the MessageBox.Show method to ask whether the user wants to include a dollar sign in the gross pay amount. Include Yes and No buttons in the message box. If the user clicks the Yes button, the procedure should display the gross pay amount using the “C2” format. If the user clicks the No button, the procedure should display the gross pay amount using the “N2” format. Modify the btnCalc control’s code. In addition, when the text box receives the focus, its existing text should be selected; code the appropriate procedure. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here