vb.net - Changing font name -
in vb.net ,i have rich text box write text , combo box font names. added fonts combo box code:
private sub form1_load(byval sender system.object, byval e system.eventargs) handles mybase.load dim ff fontfamily each ff in system.drawing.fontfamily.families fontname.items.add(ff.name) next end sub but don't know, how change font name of rich text box.
richtextbox.font = new font(fontname.text, 10, fontstyle.regular)
Comments
Post a Comment