Drop and Drag Text File into RichTextBox - file opens but icon appears
Hi,
I hope this post is in the right place.
I am using C# with Visual Studio 2005 and trying to write an application which will allow text files to be dragged over the rtb and then the text will be displayed.
It is almost working except for one showstopper - the icon of the file is always in the rtb before all the text from the file. You will see the same effect if you drag a text file into WordPad. I really need a way of being able to consume or wipe this icon before I display my text.
I have tried setting the text = "" before adding mine and calling the Clear method but neither seem to work.
Any help will be much appreciated. If I haven't explained this properly or anyone wants to see my code let me know.
Thanks,
badwolf500