A
A
Anton_repr2019-04-23 05:54:29
C++ / C#
Anton_repr, 2019-04-23 05:54:29

How to launch an image from any folder?

In the form (winforms) I placed several pictureboxes in order to put a gif there.
did it like this: picturebox.Image = "file path". But the bottom line is that I need to run the project on another PC, and there my flash drive becomes not "F", but "D".
How to run the program without transferring the gif to the D drive on another PC?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasiC2k, 2019-04-23
@Anton_repr

If the images are in the same folder as the program, then you can set the path to them in the code by specifying the launch folder.
If the images are located in another folder, then you need to provide a dialog box for selecting a folder (disk) with images.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question