I tried this but it throw an error saying : "Invalid file format" .
VB Code:
  1. Me.RichTextBox1.LoadFile("c:\a.cs", RichTextBoxStreamType.RichText)


but

when I try this , it works WITHOUT keywords color

VB Code:
  1. Me.RichTextBox1.LoadFile("c:\a.cs", RichTextBoxStreamType.PlainText)

I need to load the file in RTB pertaining syntax coloring .

Anybody knows why it making that error ??

Thanks