how to run
-
Hi I devolped an application .And i used png image files.When i run at the desktop it display exception "file not found"(for png ,that are exist at the exe file path). when i paste png folder at desktop it runs. How can i run without paste png folder i write the path for png is btn_main_select_file.BackgroundImage=System.Drawing.Image.FromFile(Application.StartupPath+@"\dbxpngs\select01.png"); Parshant
-
Hi I devolped an application .And i used png image files.When i run at the desktop it display exception "file not found"(for png ,that are exist at the exe file path). when i paste png folder at desktop it runs. How can i run without paste png folder i write the path for png is btn_main_select_file.BackgroundImage=System.Drawing.Image.FromFile(Application.StartupPath+@"\dbxpngs\select01.png"); Parshant
Parshant Verma wrote:
When i run at the desktop
I guess that means you have a link on your desktop that targets your application executable. Open the properties window of the link and insert the application path in the "Execute in" field (not sure if it has this exact name cause I have a german OS but it should be something similar).
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook