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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. solution explorer

solution explorer

Scheduled Pinned Locked Moved C#
graphicsquestion
4 Posts 3 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 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

    A A 2 Replies Last reply
    0
    • P Parshant Verma

      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

      A Offline
      A Offline
      Amar Chaudhary
      wrote on last edited by
      #2

      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"); :)

      1 Reply Last reply
      0
      • P Parshant Verma

        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

        A Offline
        A Offline
        asator
        wrote on last edited by
        #3

        i would add it as a resource

        A 1 Reply Last reply
        0
        • A asator

          i would add it as a resource

          A Offline
          A Offline
          Amar Chaudhary
          wrote on last edited by
          #4

          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 :)

          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