Assuming an application has an exception object named ex, which one of the following statements would cause the exception’s default error message to be displayed in a message box?

a. MessageBox(ex.Message);
b. ex.Message = MessageBox.Text;
c. MessageBox.Show(ex.Message);
d. MessageBox.Text = ex.Message;

c. MessageBox.Show(ex.Message);

Computer Science & Information Technology

You might also like to view...

Use DXDiag to download replacement DirectX files

Indicate whether the statement is true or false

Computer Science & Information Technology

The main difference between structures and classes is:

a. Whether they default to public or private access. b. How they access member variables. c. That classes always require new be used with them while structures do not. d. There is no difference between structures and classes.

Computer Science & Information Technology