- First add a TooStrip
- If you can't add toolStrip (if you got error)please right click on tabb and Cut it. Then add the toolStrip and paste the tab again
- Then add a button to toolStrip
- You can add a image to the button by, right click -> Set Image...
- Import a image and press OK
- Double click on the button and put this codes
- Now run the programm
- You can highlight and change the font
FontDialog fdb = new FontDialog(); fdb.ShowColor = true; if(fdb.ShowDialog()==DialogResult.OK & !string.IsNullOrEmpty(GetRichBox().Text)) { GetRichBox().SelectionFont = fdb.Font; }
Next post I will show you how make Auto complete text box
No comments:
Post a Comment