D
D
Denis2021-06-17 10:10:26
C++ / C#
Denis, 2021-06-17 10:10:26

How can I drag and drop a file onto a Label?

Task: There is an inscription, for example, a Label on which a plus sign is drawn, and you can drag a file onto this plus sign, and so that when the mouse button is released, I receive information from where this file was beaten.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-06-17
Folyush @AAGR

At the label, set something like drugcobtainer
Files, as I understood from the explorer
After you subscribe to the drop event
In the handler, you will have a structure
For the file, this is the name and path
Next, write the logic for obtaining attributes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question