Well, I have this code (contrary to what it looks like, "textbox1" is definately, certainly, 100% sure that it's referring to a richtextbox, as some other code already works). For some reason, the font isn't changing:

vb Code:
  1. With richtextbox1 ' contains a loaded file of settings
  2. .SelStart = 0
  3. nPos2 = InStr(1, .Text, "&") 'I use "&" as the end of a setting, it deletes it afterwards
  4. .SelLength = nPos2 - 1
  5. checked = .SelText
  6. textbox1.SelStart = 0
  7. textbox1.SelLength = Len(textbox1.Text)
  8. textbox1.SelFontName = checked ' yet, for some reason, the richtextbox doesn't change its font...
  9. textbox1.SelStart = 0
  10. textbox1.SelLength = 0
  11. .SelStart = 0
  12. .SelLength = nPos2
  13. .SelText = "" 'deletes the setting so it can move onto the next
  14. End With

Now, I've already managed to apply this to text colour and a caption, so why shouldn't this be working here? If I check the contents of "checked", it returns the name of the font that I wanted, yet there is no font change