• Hello and welcome to our new forums. We upgraded our forum sites to a more robust and modern system which we hope you will enjoy. Be sure to check out your profile by clicking the button on the top right and configure your preferences, signature, time zone, avatar, etc. as you wish. If you need help with using this new forum'ware try the help link on the bottom right.

    Click here to review your account now.

Drag and drop PDF

itms

Member
Joined
Feb 21, 2018
Messages
18
Programming Experience
10+
Hi,

I have been looking all over for some info on this and cannot find anything; maybe I am not asking right.
However, what I am looking to be able to go to a share (externally from) my app and drag a PDF file into either a list box or a textbox; and have it display the contents of the file in the textbox.

I currently can import it and display it in the box but the user wants to just be able to drag it in there and have it open there.

Thank you
 

itms

Member
Joined
Feb 21, 2018
Messages
18
Programming Experience
10+
Thanks, but I do not want the file path.
I want the file to open in the textbox so the user can view it. They showed me things that does this so it can be done, I jsut cannot find anything onit.

Thank you
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,276
Location
Norway
Programming Experience
10+
itms said:
I currently can import it and display it in the box
That's what you're supposed to do with the file path.
 

itms

Member
Joined
Feb 21, 2018
Messages
18
Programming Experience
10+
I am sorry I maybe not explaining this right. We want to be able to drop the file in the control(and maybe it has to be a different type of control), and have it open to display the contents of the file. so, if it were a document (or a contract) it would show all the words of the document.
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,276
Location
Norway
Programming Experience
10+
You will only get the file path with a drag-drop operation. What to do with that file next is up to you, there is no built in code or functionality do one or the other with any particular file.
 
Top Bottom