Ok, I have a slight issue and for some reason I am not able to resolve it. I have a parent form with a drag and drop event to open files dragged from explorer into a new child form, it works fine. I also have children forms with a rich text box (txtMain) filling the entire form. I took the very same code from the main form and just put it into the drag and drop events for txtMain. It works as well, the new child form is opened and its txtMain is filled with the information from the text file. It works fine, with one exception, it leaves a boxed link with the text "Text File" in the txtMain into which the file was originally dragged. How can I prevent it from doing this while still doing every thing else?
This problem only happens in 2.0 and not 1.1. I'm guessing the rich text box control was altered a bit.
Being on GitHub doesn't make something safe.
Like any unofficial scripts to do x or y this caters to people with just enough knowledge to be dangerous.
If you want to do what this does, and you actually know what you're doing then write your own script (or maybe just add the reg keys yourself) if you don't have the ability to read and understand what a script is doing, and especially don't run it with elevated privileges.
Or in this case just use an MSA, sign up the normal route, and stop trying to push water up hill
Question
Veedems Veteran
Ok, I have a slight issue and for some reason I am not able to resolve it. I have a parent form with a drag and drop event to open files dragged from explorer into a new child form, it works fine. I also have children forms with a rich text box (txtMain) filling the entire form. I took the very same code from the main form and just put it into the drag and drop events for txtMain. It works as well, the new child form is opened and its txtMain is filled with the information from the text file. It works fine, with one exception, it leaves a boxed link with the text "Text File" in the txtMain into which the file was originally dragged. How can I prevent it from doing this while still doing every thing else?
This problem only happens in 2.0 and not 1.1. I'm guessing the rich text box control was altered a bit.
Link to comment
https://www.neowin.net/forum/topic/240248-vb-net-20richtextbox-drag-drop-from-explorer/Share on other sites
21 answers to this question
Recommended Posts