I have some text in the textbox and that text is editable.
When a checkbox chkBox is checked, I need to append some more text to the existing text in the same textbox but I want this new text to be grayed out (not editable). How do I do that? Here's my code:
I want the text "This text should be grayed out" to be appended to the existing text but I want it to be grayed out.
if (chkBox.Checked == true)
{
txtBox.Text = txtBox.Text + Environment.NewLine + "This text should be grayed out";
}
Thanks for your help.
Go to the complete details ...