<My problem is, when I save a Rich Text Format file from a clipboard I cannot open that file or any other rtf file using microsft word until the computer is completely turned off and restarted.
Here is the basic code:
Dim d As DataObject = My.Computer.Clipboard.GetDataObject
Dim sb As StringBuilder = New StringBuilder()
Filename = StrConv(Trim(Message.txtMessage.Text), VbStrConv.ProperCase)
If d.GetDataPresent(DataFormats.Rtf) Then
Using outfile As New StreamWriter(AppDataPath & "\Topics\" & Filename & ".rtf")
Note: the file saves ok, but can't open until computer is turn off and back on again, even though the streamwriter object is closed.
Many thanks in advance
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)