Icon for User control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JR

    #1

    Icon for User control

    Hi,

    I maked some controls into a DLL the work fine

    Now I want to add a icon for each control. i converted the icons into bmp
    I added the line
    <ToolboxBitmap( GetType(ctrl_Di giKlok), "DigKlok.bm p")>

    in fron of the class

    but I still have that old default and stupid icon from ms

    when I recompile i DON'T have an error

    I work with VB.net 2003






  • Smokey Grindle

    #2
    Re: Icon for User control

    I don't believe that user controls will show toolbox icons.. Ive never seen
    it work myself, ive only had it work on custom controls.

    "JR" <x.x@x.x.wrot e in message
    news:20ysg.5297 49$842.12929074 @phobos.telenet-ops.be...
    Hi,
    >
    I maked some controls into a DLL the work fine
    >
    Now I want to add a icon for each control. i converted the icons into bmp
    I added the line
    <ToolboxBitmap( GetType(ctrl_Di giKlok), "DigKlok.bm p")>
    >
    in fron of the class
    >
    but I still have that old default and stupid icon from ms
    >
    when I recompile i DON'T have an error
    >
    I work with VB.net 2003
    >
    >
    >
    >
    >
    >

    Comment

    • JR

      #3
      Re: Icon for User control

      where for is the option:
      ToolboxBitmap

      if it does not work

      "Smokey Grindle" <nospam@dontspa mme.comschreef in bericht
      news:OznjCRJpGH A.756@TK2MSFTNG P05.phx.gbl...
      >I don't believe that user controls will show toolbox icons.. Ive never seen
      >it work myself, ive only had it work on custom controls.
      >
      "JR" <x.x@x.x.wrot e in message
      news:20ysg.5297 49$842.12929074 @phobos.telenet-ops.be...
      >Hi,
      >>
      >I maked some controls into a DLL the work fine
      >>
      >Now I want to add a icon for each control. i converted the icons into
      >bmp
      >I added the line
      ><ToolboxBitmap (GetType(ctrl_D igiKlok), "DigKlok.bm p")>
      >>
      >in fron of the class
      >>
      >but I still have that old default and stupid icon from ms
      >>
      >when I recompile i DON'T have an error
      >>
      >I work with VB.net 2003
      >>
      >>
      >>
      >>
      >>
      >>
      >
      >

      Comment

      Working...