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. picturebox or any other tool

picturebox or any other tool

Scheduled Pinned Locked Moved C#
comquestion
6 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.
  • E Offline
    E Offline
    Erdinc27
    wrote on last edited by
    #1

    hey guys..i have to add 19 icons to my form..but i dont know which tool i should use?..19 picturebox i should add to my form or one another tool can i use ?

    vemedya.com

    OriginalGriffO 1 Reply Last reply
    0
    • E Erdinc27

      hey guys..i have to add 19 icons to my form..but i dont know which tool i should use?..19 picturebox i should add to my form or one another tool can i use ?

      vemedya.com

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Draw them yourself in the Paint event:

         private void MyForm\_Paint(object sender, PaintEventArgs e)
              {
              e.Graphics.DrawImage(myIcon, myIconLocation);
              ...
              }
      

      For details see http://msdn.microsoft.com/en-us/library/42807xh1.aspx[^]

      Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      E 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Draw them yourself in the Paint event:

           private void MyForm\_Paint(object sender, PaintEventArgs e)
                {
                e.Graphics.DrawImage(myIcon, myIconLocation);
                ...
                }
        

        For details see http://msdn.microsoft.com/en-us/library/42807xh1.aspx[^]

        Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

        E Offline
        E Offline
        Erdinc27
        wrote on last edited by
        #3

        thanks for the help..should i add them to resources File of my project..to use them when i make its exe ?

        vemedya.com

        OriginalGriffO 1 Reply Last reply
        0
        • E Erdinc27

          thanks for the help..should i add them to resources File of my project..to use them when i make its exe ?

          vemedya.com

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          erdinc27 wrote:

          should i add them to resources File of my project

          If they are fixed when you compile, then yes, it reduces the amount of stuff you need to ensure is there when your app runs.. If not, then keep them as files and load them when your form loads, or when they change.

          Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          E 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            erdinc27 wrote:

            should i add them to resources File of my project

            If they are fixed when you compile, then yes, it reduces the amount of stuff you need to ensure is there when your app runs.. If not, then keep them as files and load them when your form loads, or when they change.

            Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

            E Offline
            E Offline
            Erdinc27
            wrote on last edited by
            #5

            ok friend..thanks for your help and time

            vemedya.com

            OriginalGriffO 1 Reply Last reply
            0
            • E Erdinc27

              ok friend..thanks for your help and time

              vemedya.com

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #6

              Welcome!

              Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              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