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. Visual Basic
  4. Toolbox icons for multiple controls in windows control library (.NET)

Toolbox icons for multiple controls in windows control library (.NET)

Scheduled Pinned Locked Moved Visual Basic
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.
  • C Offline
    C Offline
    cnurse
    wrote on last edited by
    #1

    Hi, I have 4 individual windows controls in a single windows control lib. Is there a way I can assign a unique icon to each of them? Maybe I have to break them into separate projects. Thanks. Nursey

    J 1 Reply Last reply
    0
    • C cnurse

      Hi, I have 4 individual windows controls in a single windows control lib. Is there a way I can assign a unique icon to each of them? Maybe I have to break them into separate projects. Thanks. Nursey

      J Offline
      J Offline
      J Dunlap
      wrote on last edited by
      #2

      Put the ToolBoxBitmap attribute on each control class:

      <ToolboxBitmap(GetType(MyControl), "MyControlBitmap.bmp")>

      Include the bitmap you specified ("MyControlBitmap.bmp" in the above example) in the control's resource file, with the name you specified ("MyControlBitmap.bmp" here).

      **"A people that values its privileges above its principles soon loses both." -- Dwight D. Eisenhower

      FLUID UI Toolkit | FloodFill in C# & GDI+**

      C 1 Reply Last reply
      0
      • J J Dunlap

        Put the ToolBoxBitmap attribute on each control class:

        <ToolboxBitmap(GetType(MyControl), "MyControlBitmap.bmp")>

        Include the bitmap you specified ("MyControlBitmap.bmp" in the above example) in the control's resource file, with the name you specified ("MyControlBitmap.bmp" here).

        **"A people that values its privileges above its principles soon loses both." -- Dwight D. Eisenhower

        FLUID UI Toolkit | FloodFill in C# & GDI+**

        C Offline
        C Offline
        cnurse
        wrote on last edited by
        #3

        OK, I have 4 controls, 4 bitmaps all 16x16 using 16 color palette. Two of my controls display their toolbox bitmap and two display the old cog yellow cog wheel. What the heck is going on here. Here is an example of one of my attributes. I've rebuilt the assembly, unreferenced and rerefenced it, quit the IDE and gone back in, and everything I can think of. _ Thanks. Nursey

        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