Practice Questions

Question 1Which of the following are container controls? (Choose all correct answers.)
  • A. Windows Form

  • B. Label

  • C. Panel

  • D. RadioButton

  • E. GroupBox

A1: Answers A, C, and E are correct. The Windows Form is itself both a container and a control, as are the Panel and GroupBox controls. Answer B is incorrect because the Label control is a read-only control used to display text. Answer D is incorrect because a RadioButton control is a check box–like control used to allow a user to select only one of several items.
Question 2You want to prevent a TextBox control from receiving the focus through user tabbing and to not accept changes to its stored value if a user clicks it. What action or actions should you take to complete this task using ...

Get Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) 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.