How to use a string variable in a directory path

You should use Path.Combine() when dealing with string paths, You can do this as follows:

 Image.Image = Image.FromFile(Path.Combine(MYSTRING, "image.png"))

Leave a Comment