ToolboxBitmap


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: ToolboxBitmap

  1. #1
    JoJo Guest

    ToolboxBitmap

    Every time I build a .bmp picture using MSPaint and add for a UserControl's
    ToolboxBitmap property in VB. The image always looks different and never
    have the same detail. Why is that and what size should the .bmp's be?



  2. #2
    Dean Earley Guest

    Re: ToolboxBitmap

    "JoJo" <maddockandrewNOSPAM@hotmail.com> wrote in message news:3d00ca72@10.1.10.29...
    > Every time I build a .bmp picture using MSPaint and add for a UserControl's
    > ToolboxBitmap property in VB. The image always looks different and never
    > have the same detail. Why is that and what size should the .bmp's be?
    >


    15x16, and the colour in the bottom right corner (I think) is made transparent.
    It has to be 16 colours as well I think

    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems



  3. #3
    JoJo Guest

    Re: ToolboxBitmap

    width = 15 & height = 16 right ?

    cheers

    "Dean Earley" <dean.earley@icode.co.uk> wrote in message
    news:3d00d541@10.1.10.29...
    > "JoJo" <maddockandrewNOSPAM@hotmail.com> wrote in message

    news:3d00ca72@10.1.10.29...
    > > Every time I build a .bmp picture using MSPaint and add for a

    UserControl's
    > > ToolboxBitmap property in VB. The image always looks different and never
    > > have the same detail. Why is that and what size should the .bmp's be?
    > >

    >
    > 15x16, and the colour in the bottom right corner (I think) is made

    transparent.
    > It has to be 16 colours as well I think
    >
    > --
    > Dean Earley (dean.earley@icode.co.uk)
    > Assistant Developer
    >
    > iCode Systems
    >
    >




  4. #4
    Karl E. Peterson Guest

    Re: ToolboxBitmap

    No, 16 wide, 15 high.
    --
    [Microsoft Basic: 1976-2001, RIP]


    "JoJo" <maddockandrewNOSPAM@hotmail.com> wrote in message news:3d00dadd@10.1.10.29...
    > width = 15 & height = 16 right ?
    >
    > cheers
    >
    > "Dean Earley" <dean.earley@icode.co.uk> wrote in message
    > news:3d00d541@10.1.10.29...
    > > "JoJo" <maddockandrewNOSPAM@hotmail.com> wrote in message

    > news:3d00ca72@10.1.10.29...
    > > > Every time I build a .bmp picture using MSPaint and add for a

    > UserControl's
    > > > ToolboxBitmap property in VB. The image always looks different and never
    > > > have the same detail. Why is that and what size should the .bmp's be?
    > > >

    > >
    > > 15x16, and the colour in the bottom right corner (I think) is made

    > transparent.
    > > It has to be 16 colours as well I think
    > >
    > > --
    > > Dean Earley (dean.earley@icode.co.uk)
    > > Assistant Developer
    > >
    > > iCode Systems
    > >
    > >

    >
    >



  5. #5
    Dean Earley Guest

    Re: ToolboxBitmap

    "Karl E. Peterson" <karl@mvps.org> wrote in message news:3d012ba9$1@10.1.10.29...
    > No, 16 wide, 15 high.


    Oops, It just happens that the one control I chose was wrong ) I checked some others and they were OK.

    From MSDN

    The size of the space for the bitmap in the toolbox is 16x15 pixels; the bitmap specified by this property will be scaled to these
    dimensions if necessary.

    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center