One more problem
-
I am using a richtextbox in my project, and want to be able to drag files into it. While I can get a file and get it to load, the file object is also inserted into the control. There appears to be no handled property on the DragEventArgs of the DragDrop event for the richtextbox. I've been back and forth through the docs and nothing I've tried seems to work.
-
I am using a richtextbox in my project, and want to be able to drag files into it. While I can get a file and get it to load, the file object is also inserted into the control. There appears to be no handled property on the DragEventArgs of the DragDrop event for the richtextbox. I've been back and forth through the docs and nothing I've tried seems to work.
Also noticed something else re: richtextbox. Tried setting up a reverse find. Seems that no matter what I did, the find always started at the end. I used instance.Find(theText, startPos, RichTextBoxFinds.Reverse) And while it would find theText, it would always find the same text, last one in the box. I could put a starting position between 2 known locations of theText, and it would make no difference. In the end, I put the text into a string, then did an InstrRev to get the location, then set the SelectionStart and SelectionLength accordingly, and it works. But it should work using the .find!