Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to run

how to run

Scheduled Pinned Locked Moved C#
graphicstutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Parshant Verma
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • P Parshant Verma

      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

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      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

      www.troschuetz.de

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups