Hour 17
Quiz
1: | What minimal argument should you supply when calling MessageBox.Show()? |
A1: | The MessageText argument. |
2: | If you don't supply a value for the caption parameter of MessageBox.Show(), what gets displayed in the title bar of the message? |
A2: | Nothing, which is why you should always specify a caption. |
3: | What type of data is always returned by the MessageBox.Show() method? |
A3: | 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 Button property of the e object in the event handler. |
Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.