I have three checkboxes in my form. The problem is that when I check all three, I only received one checkbox. how can I fix this?
my code:
    private void button1_Click(object sender, EventArgs e)
    {
        ConfigOptions itemToSave = 0;
        if (autoCapsNames.Checked)
        {
            itemToSave |= ConfigOptions.AutoCapsStr;
        }
        if (autoSort.Checked)
        {
            itemToSave |= ConfigOptions.IntantOrganization;
        }
        if (showLinesNumbers.Checked)
        {
            itemToSave |= ConfigOptions.ShowLinesNumber;
        }
        SaveConfigs(itemToSave);
    }
Thanks
 
     
    