Apologies if this is confusing but I am very confused with my logic in making this function.
Basically I have a button in a menu strip for making a bulleted list. If this is checked true I want bullets to be displayed (if not no bullets).
I have started with the following code:
private void bulletsToolStripMenuItem_Click(object sender, EventArgs e)
{
if (bulletsToolStripMenuItem.Checked == false)
{
bulletsToolStripMenuItem.Checked = true;
txtMain.SelectionBullet = true;
}
}
My thinking behind this is if there are not bullets & the button is clicked they need to be displayed. This works fine to display the bullets & check the item. I have then added:
else
bulletsToolStripMenuItem.Checked = false;
txtMain.SelectionBullet = false;
Which in my logic should do the opposite. But this checks & unchecks the item but doesn't display the bullets.
My whole method is:
private void bulletsToolStripMenuItem_Click(object sender, EventArgs e)
{
if (bulletsToolStripMenuItem.Checked == false)
{
bulletsToolStripMenuItem.Checked = true;
txtMain.SelectionBullet = true;
}
else
bulletsToolStripMenuItem.Checked = false;
txtMain.SelectionBullet = false;
}
Any help with where I am going would be greatly appreciated. Thanks in advance & again sorry for the length.