I want to change an image in WinForms
based on a result.
if(x == true)
{
// Show image 1
else
{
// show image 2
I saw that I can use Image.Fromfile("Image path")
. But I have to use an image path something like this @"C:\test\test1.jpg"
.
So, is there any way that I can give a dynamic file path?
For example, if I open the project from another computer, this file path might change.
Thank you!