hi guys,

Okay,

my program consist of a richtextbox, textbox, combo box and command button.

In the combobox I have the system fonts.
The richtextbox(rtfmain.text) is the main window
The text box is where the user types something in and after pressing the command button it shows at rtfmain.text.

When I choose a specific font from the combo box it will change to that style on the rtrmain and the regular textbox.

PROBLEM:
The text in rtfmain.text all changes to that font.
I need it to be that only the recent text entered in changes with the font style. Not the previous text allready in the rtfmain.text.

Code:
rtfMain.SelStart = Len(rtfMain.Text) '// auto scroll
                  
rtfMain.Font = cboFonts.Text
any ideas.


Thanks in advance