I have an object derived from System.Windows.Forms.UserControl (plus an
interface I defined).

The UserControl has quite a few child controls (some w/children of their
own) ranging from listviews to treeviews to tab controls / pages, toolbars,
panes, and splitters.

All my toolbars display correctly during design time. But, at runtime, some
are displayed correctly and others aren't (there is no image shown - just a
blank button). With each toolbar, it's all or nothing. Either all the
images are correctly displayed, or none of them are.

I've tried a couple things like deleting and re-creating the imagelist used
by the toolbars and deleting and re-adding the buttons. Nothing seems to
help.

Any ideas?

One follow-up: The transparent areas of the images that do display aren't
transparent. I've tried with the transparent color set to the default as
well as the actual color (used RGB value - 191, 192, 195) used in the
images. Those "transparent" areas do show up, though. Btw, these are
bitmaps.

Any help is much appreciated. TIA.

--
Michael Salamone [eMVP]
Entrek Software, Inc.
www.entrek.com

Re: Toolbar / ImageList problem - Design Time vs Run Time by Michael

Michael
Fri Jun 24 10:29:47 CDT 2005

I "fixed" this by doing a clean rebuild. Build\Rebuild Solution wasn't
enough. I nuked the obj and bin directories, and then re-built.

I still have the transparency problem, so would appreciate any help with
that.

Thanks!

--
Michael Salamone [eMVP]
Entrek Software, Inc.
www.entrek.com


"Michael J. Salamone" <mikesa#at#entrek#dot#com> wrote in message
news:eCTod%23MeFHA.2180@TK2MSFTNGP12.phx.gbl...
>I have an object derived from System.Windows.Forms.UserControl (plus an
>interface I defined).
>
> The UserControl has quite a few child controls (some w/children of their
> own) ranging from listviews to treeviews to tab controls / pages,
> toolbars, panes, and splitters.
>
> All my toolbars display correctly during design time. But, at runtime,
> some are displayed correctly and others aren't (there is no image shown -
> just a blank button). With each toolbar, it's all or nothing. Either all
> the images are correctly displayed, or none of them are.
>
> I've tried a couple things like deleting and re-creating the imagelist
> used by the toolbars and deleting and re-adding the buttons. Nothing
> seems to help.
>
> Any ideas?
>
> One follow-up: The transparent areas of the images that do display aren't
> transparent. I've tried with the transparent color set to the default as
> well as the actual color (used RGB value - 191, 192, 195) used in the
> images. Those "transparent" areas do show up, though. Btw, these are
> bitmaps.
>
> Any help is much appreciated. TIA.
>
> --
> Michael Salamone [eMVP]
> Entrek Software, Inc.
> www.entrek.com
>
>