Creating Paragraph Styles of text in window forms text controls ?

korenani

New member
Joined
May 8, 2010
Messages
1
Programming Experience
1-3
Hi,

I am really at lost here.

I am trying to build a NOTEPAD/WORDPAD like application with vb.net on visual studio 2008.

I need an option to define and choose (MsWord, or CSS like) paragraphs styles, such as: "heading1", "green quotes", etc.

I've been looking everywhere for examples and help, but didn't find anything ...

Could someone help with a direction ?
 
I'm going to assume that you are using a RichTextBox. What exactly will a style consist of? It will be a font, a forecolor, a backcolor and whatever else. So, define a type with a property for each of those things. You can then define multiple instances of that type with different names. When the user selects one, you get each property value and apply it to the selected text.
 
Back
Top