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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -