using System.Windows.Forms; public class SampleCheckBoxControl : Form { private CheckBox m_almondCheckbox; private CheckBox m_glutenCheckbox; private Label m_allergiesLabel; public SampleCheckBoxControl() { // Initialize the components m_allergiesLabel = new Label(); m_almondCheckbox = new CheckBox(); m_glutenCheckbox = new CheckBox(); // Set properties m_almondCheckbox.Text = "Almond Allergy"; m_glutenCheckbox.Text = "Gluten Allergy"; m_allergiesLabel.Text = "Please select your allergies:"; m_allergiesLabel.AutoSize = true; // Add the controls to the form Controls.Add(m_allergiesLabel); Controls.Add(m_almondCheckbox); Controls.Add(m_glutenCheckbox); // Set the form properties Text = "Allergy Form"; AutoSize = true; } }The CheckBox control is part of the System.Windows.Forms package in C#.