Sams Teach Yourself C# in 24 Hours

Sams Teach Yourself C# in 24 Hours

By James Foxall and Wendy Haro-Chun

Q&A

  1. Can I place radio buttons directly on a form?

    Yes. The form is a container, so all radio buttons placed on a form are mutually exclusive to one another. If you wanted to add a second set of mutually exclusive buttons, they'd have to be placed on a container control. In general, I think it's best to place radio buttons on a group box rather than on a form because the group box provides a border and a caption for the radio buttons and makes it much easier to move the set of radio buttons around when you're designing the form.

  2. I've seen what appears to be list boxes that have a check box next to each item in the list. Is this possible?

    Yes. In C#, this is accomplished using an entirely different control: the checked list box.

Share ThisShare This

Informit Network