can a custom control have an image property that can be set in design time from the property browser

  • Thread starter Thread starter news.austin.rr.com
  • Start date Start date
N

news.austin.rr.com

can a custom control have an image property that can be set in design time
from the property browser?

Is this the best way to set an image for a custom control or is their a
better way?



Thanks you.
 
You should be able to set an Image into a property at design-time. I saw
your other post about profiling and you stated that your catch blocks are
not being hit, however, perhaps exceptions are being thrown and caught
internal to the framework. You might need to dive into reflector to check
that one out though.
 
Thanks Tim,

What do you mean by "dive into the reflector" how can i use reflection to
find the problem?

Thanks
 
Actually, I meant the tool (http://www.aisto.com/roeder/dotnet/). It's a
disassembler to roll IL back to a high-level language like C#. Of course,
this is for educational purposes only. :) What you might want to do is look
at what calls are made when the ResourceManager looks up a resource through
its GetObject method versus what calls are made when you extract and load
the resource yourself (presumably through the GetManifestResourceStream
method). There might be a difference in how these two methods, or methods
that are called by these methods, operate internally.
 
Back
Top