Is it possible to change the font size used in a ContextMenu using the .NET Framework 3.5 and C# for a desktop application? It seems it’s a system-wide setting, but I would like to change it only within my application.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are defining your own context menu via a
ContextMenuStripin Windows Forms, use the Font property.If you are defining your own context menu via a
ContextMenuin WPF, use the various Fontxxx properties such as FontFamily and FontSize.You cannot change the default context menus that come with controls; those are determined by system settings. So if you want the ‘Copy/Cut/Paste/etc.’ menu with a custom font size for a WinForms
TextBox, you’ll have to create aContextMenuStripwith the appropriate font size and assign it to theTextBox‘s ContextMenuStrip property.