Runtime Control Icon

  • Thread starter Thread starter Russell Rice
  • Start date Start date
R

Russell Rice

I am using the command line c# complier to build my controls. The control
works perfectly but I can not find any reference on how to bind the
design-time bitmap to the control class using the command line compiler.
Normally you could use ToolBoxBitmapAttribute but that is not available in
the compact framework. Does anyone have any information on this topic?

Russell
 
1. Make sure that the name of your bitmap is the same as
your control including the namespace. i.e.:

MyNameSpace.MyControl.bmp

2. Add /res switch to your cmd line:

/res:MyNameSpace.MyControl.bmp

HTH... Alex
 
Thank you much for your help,

Note: to anyone looking for this answer make sure that the spelling and case
of your bitmap file "exactly" matches that of your control class. It will
same you the ten minutes of hair pulling to figure out why it did not work
the first time.

Thanks again Alex.
 
Back
Top