❔ Cannot convert System.Drawing.Image to string
im trying to display a image on a button through a variable as its name in the name.Image = Image.Fromfile(..................) command



global.s?public static System.Drawing.Image FromFile(string filename);FromFile returns a System.Drawing.Image but you're trying to assign it to something that requires a stringglobal.squarename = ...
global.squarename, which is a string, to an Image
global.squarename to a string value, you're not setting an imageglobal.squarename is not an Image variable, it's a string variableglobal object set up?
global.public static System.Drawing.Image FromFile(string filename);FromFileSystem.Drawing.Imageglobal.squarename = ...global.squarenameglobal.squarenameglobal.squarenameImageImageglobal