DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
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



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links