Relative Content

Tag Archive for c#toolstripmenu

Need help calling title of Tool Strip Menu Item in Visual Studio (c#)

So, I’m trying to make a really basic word processor program in Visual Studio 2022 for a class I’m taking. One of the features I want to include is the ability to change the font of the document via some tool strip menu items (which for expedience I will refer to as “font buttons”) at the top. I’ve made a click event method connected to each of the font buttons, and I want it to call upon the text of the font button and use it to change the font of the document(txtDocument). However, I am struggling to get it to correctly retrieve the text.