Question contextmenustrip bold font

Zexor

Well-known member
Joined
Nov 28, 2008
Messages
520
Programming Experience
3-5
I have a contextmenustrip cmsTray1 and am filling the menu in cmsTray1_Opening at runtime. How do i set only the first line's font to bold and the rest to normal? the Font.bold seems to be read only when i try to set

cmsTray1.Items(cmsTray1.Items.Count - 1).Font.Bold = True
 
VB.NET:
item.Font = New Font(item.Font, item.Font.Style Or FontStyle.Bold)
 
Back
Top