<div dir="ltr">On Sun, 17 Jul 2022 at 03:28, sbungay <<a href="mailto:sbungay@smartsonsite.com" target="_blank">sbungay@smartsonsite.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  Â Using the file chooser I want to drag one of the files from it <br>
(represented by its icon) to a text area and on dropping it have the <br>
text area load the file. Can't seem to get this to work, anyone have an <br>
example project I can examine<span class="gmail_default" style="font-size:small">?</span></blockquote></div></div></blockquote></div></div></blockquote></div></div></blockquote></div></blockquote><div><br></div><div> </div><div><div style="font-size:small" class="gmail_default">There seems to be another issue.</div><div style="font-size:small" class="gmail_default">For your specific task of writing the file contents into the textarea.</div><div style="font-size:small" class="gmail_default"></div><div style="font-size:small" class="gmail_default">It seems we cannot override/intercept or turn off the way a textarea pastes the file name on drop.</div><div style="font-size:small" class="gmail_default">I tried using text/uri-list as format, still just the filename is pasted not the contents.<br></div></div><div><br></div><div><div style="font-size:small" class="gmail_default">I even tried setting TextArea1.Drop = False , still it pastes filename in!?</div><div style="font-size:small" class="gmail_default"></div><div style="font-size:small" class="gmail_default">You can make a Button (or something) with Drop enabled, then drag filechooser files there and the load file into TextArea but using TextArea_Drop() does nothing at all. still only default behaviour.</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default"><b>Public Sub Button1_Drop()<br>Dim s As String = Drag.Data<br>If Not s Then s = Drag.Paste("text/uri-list")<br> If Exist(s) Then TextArea1.Text = File.Load(s)<br>End</b><br></div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">TextArea1_Drop() event does not even trigger.</div><div style="font-size:small" class="gmail_default">BruceS</div><div style="font-size:small" class="gmail_default"><br></div></div></div></div>