Answers for Hour 18

   

Answers to Hour 18

1:

What minimal argument should you supply when calling MessageBox.Show()?

A1:

The prompt argument, the string for the message.

2:

If you don't supply a value for the title parameter of MessageBox.Show(), what gets displayed in the title bar of the message?

A2:

Nothing

3:

What type of data is always returned by the MessageBox.Show() method?

A3:

A DialogResult

4:

Which event fires first, the KeyUp or KeyPress event?

A4:

KeyPress

5:

How do you determine which button is being pressed in a mouse- related event?

A5:

Use the Buttons property of the e object in the event handler.


   
Top


Sams Teach Yourself C# in 24 Hours
Sams Teach Yourself Visual Basic 2010 in 24 Hours Complete Starter Kit (Sams Teach Yourself -- Hours)
ISBN: 0672331136
EAN: 2147483647
Year: 2002
Pages: 253
Authors: James Foxall

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net