You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2025. It is now read-only.
Hi bro. I was learning from your project, and I found a bug while increasing the font size from the increaseStripButton_Click().
Solution:
privatevoidincreaseStripButton_Click(objectsender,EventArgse){try{intsize=Convert.ToInt32(richTextBox1.SelectionFont.Size)+1;// convert (fontSizeNum + 1)if(richTextBox1.SelectionFont==null){return;}// sets the updated font sizerichTextBox1.SelectionFont=newFont(richTextBox1.SelectionFont.FontFamily,size,richTextBox1.SelectionFont.Style);fontSizeComboBox.Text=size.ToString();// update font size}catch(Exceptionex){MessageBox.Show(ex.Message,"Error Information",MessageBoxButtons.OK,MessageBoxIcon.Warning);// show error message}}
Hi bro. I was learning from your project, and I found a bug while increasing the font size from the increaseStripButton_Click().
Solution:
Good luck!