Toolbar / ImageList problem - Design Time vs Run Time

  • Thread starter Michael J. Salamone
  • Start date
M

Michael J. Salamone

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.
 
M

Michael J. Salamone

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top