Code such as
tabControl1.Font.Italic = true;
will not work. Instead, you have to create a new Font object, and set the property during its creation. This code will work.
tabControl1.Font = new Font(tabControl1.Font, FontStyle.Italic);
Code such as
tabControl1.Font.Italic = true;
will not work. Instead, you have to create a new Font object, and set the property during its creation. This code will work.
tabControl1.Font = new Font(tabControl1.Font, FontStyle.Italic);
Share with