Windows Develop Bookmark and Share   
 index > Windows Forms General > RichTextBox dont load Textfile
 

RichTextBox dont load Textfile

Hello @all,

i have a problem with the RichTextBox in Visual Studio 2005 (VB). It doesn´t load any Text file. The System.ArgumentException is "unknown Fileformat".

In VBA it works. There are no problems.

I can remember that VB6 have a problem with the RichTextBox after installing Windows XP SP2. I have try the Regestry-Patch, but there no effect.

Greets

von_Keks

von_Keks  Wednesday, March 29, 2006 3:23 PM

SP2 is required for VS05

Me.RichTextBox1.LoadFile(TheFilePath, RichTextBoxStreamType.PlainText)

Works great, there are other parameters for the loadfile method that indicate unicode, rtf, plaintext, and wether or not your file contains objects

HTH

DMan1  Wednesday, March 29, 2006 3:44 PM

SP2 is required for VS05

Me.RichTextBox1.LoadFile(TheFilePath, RichTextBoxStreamType.PlainText)

Works great, there are other parameters for the loadfile method that indicate unicode, rtf, plaintext, and wether or not your file contains objects

HTH

DMan1  Wednesday, March 29, 2006 3:44 PM

Thanx.

I think, after an update from VB, i must update me... :-)

von_Keks  Wednesday, March 29, 2006 4:05 PM

You can use google to search for other answers

Custom Search

More Threads

• Bubble events to parent control
• Window forms: close one instance, open another
• this.close() is not working
• Color DataGridView cell
• openFileDialog
• Binding Data to DataGridView - don't select a row
• on-screen keyboard remove form focus
• How to expose ImageList through ImageIndex property within usercontrol?
• Tabbed control gradient background broken in RTM (was working in Beta)
• two passwords for one account?