solution explorer
-
Hi i paste a png image folder in soloution explorer.now how can i give path. This time my png path is btn_select_folder.BackgroundImage=System.Drawing.Image.FromFile(Application.StartupPath+@"\dbxpngs\001.png"); pashant
-
Hi i paste a png image folder in soloution explorer.now how can i give path. This time my png path is btn_select_folder.BackgroundImage=System.Drawing.Image.FromFile(Application.StartupPath+@"\dbxpngs\001.png"); pashant
put directly it into bin\debug while publishing make sure you put/include those it in the application folder and for bin \ debug files you do not need to refer for a path
btn_select_folder.BackgroundImage=System.Drawing.Image.FromFile("001.png");
:) -
Hi i paste a png image folder in soloution explorer.now how can i give path. This time my png path is btn_select_folder.BackgroundImage=System.Drawing.Image.FromFile(Application.StartupPath+@"\dbxpngs\001.png"); pashant
-
but the size of resourse file may dumpen the performance if the image is small better use it as resource object but on ther other hand if it is large it may cause performance issue because it will consume ram even when it is not in use :)