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. Insert Image in toolstrip ( win app )

Insert Image in toolstrip ( win app )

Scheduled Pinned Locked Moved C#
csharpquestion
3 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.
  • K Offline
    K Offline
    Krishna Varadharajan
    wrote on last edited by
    #1

    Hi, HOw can i insert a image to toolstrip using c#....through property i can do....i need to do through code. Thanks.

    krishna

    E 1 Reply Last reply
    0
    • K Krishna Varadharajan

      Hi, HOw can i insert a image to toolstrip using c#....through property i can do....i need to do through code. Thanks.

      krishna

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      toolStripButton2.Image = new Bitmap(fileName);

      Or you can embed an image in your assembly and load it using the Manifest resource stream

      toolStripButton2.Image = new Bitmap(GetType().Assembly.GetManifestResourceStream("assembly.name.image.name");

      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

      K 1 Reply Last reply
      0
      • E Ennis Ray Lynch Jr

        toolStripButton2.Image = new Bitmap(fileName);

        Or you can embed an image in your assembly and load it using the Manifest resource stream

        toolStripButton2.Image = new Bitmap(GetType().Assembly.GetManifestResourceStream("assembly.name.image.name");

        Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

        K Offline
        K Offline
        Krishna Varadharajan
        wrote on last edited by
        #3

        Hi, Can you send an example code for the same.... Thanks

        krishna

        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