void BothRadioButton_CheckedChanged (object sender, EventArgs e) { if (_bothRadioButton.Checked) _richTextBox.ScrollBars = RichTextBoxScrollBars.Both; }