Thanks for your help. I had tried this code earlier and it partially worked.
When i click the bullets in the
format menu, it checks the button, menu and context menu.
When i click the bullets in the
context menu, it checks the button, menu and context menu.
However, when i add the code for the
toolbar button, nothing is checked.
Code:
private void bulletToolStripMenuItem_Click(object sender, EventArgs e)
{
bulletContextMenu.Checked = bulletToolStripMenuItem.Checked;
bulletButton.Checked = bulletToolStripMenuItem.Checked;
}
private void bulletContextMenu_Click(object sender, EventArgs e)
{
bulletToolStripMenuItem.Checked = bulletContextMenu.Checked;
bulletButton.Checked = bulletContextMenu.Checked;
}
private void bulletButton_Click(object sender, EventArgs e)
{
//DOESNT WORK - wont check or uncheck when clicked. Wont check others when clicked.
bulletToolStripMenuItem.Checked = bulletButton.Checked;
bulletContextMenu.Checked = bulletButton.Checked;
}
I did look at L8 ex1 and the only difference i saw was the code below in the format menu bullet code.
Code:
contentRichTextBox.SelectionBullet = bulletButton.Checked;
I am starting on Lesson 7 about using richtext boxes today so I will see if it makes the difference after that.