Hi I am using vb.net 2008 and sql server 2005 in that one form contains the richtextbox from that richtextbox i am saving the questions in database now i want to change each questions font and size.

can anybody help me!

Edited by bhagawatshinde: n/a

7 Years
Discussion Span
Last Post by bhagawatshinde

Rich text is a sort of language where you define some attributes for the text in.

You can go to http://msdn.microsoft.com/en-us/library/aa140277(v=office.10).aspx to read about internal syntax of rich text.

Assuming you are saving the contents of the richtexbox rtf property in the SQL database, the easiest way is to write som kind of procedure to read the SQL data into a richtextbox, select the text into the richtextbox to change the font and size, do the changes on the selectedtext and then update the record in the SQL table wih the new rtf.

Hope this helps

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.