Thanks for the quick response!
> I don't know of a list that states which events are truly supported,
however,
> you may want to look to the class library comparison tool to see if
that
> helps.
>
http://download.microsoft.com/downlo..._Framework.chm
Thanks, this looks to be quite useful. This looks to be like what I'm
looking for--Label.Click and Button.Paint (among others) are greyed
out, indicating they are not supported. But you state that you don't
know of a list that shows what is truly supported--so what is this,
exactly? It looks to be a more accurate listing then what you get from
Visual Studio help. Are there still events this document lists as
supported that are not supported?
> The documentation for events is, well, not very good at this point.
You
> usually determine which events are actually supported just through
trial.
> The control inheritance hierarchy works the same as the desktop, it's
just
> that some controls don't support certain events even though they may
be
> present on the base class.
It really seems like Microsoft dropped the ball on this one. It's
amazing to me that MS would allow these controls to have the event
definitions, but never raise them. Why did Microsoft do it this way?
Considering the fact that these events are defined and raise in the
Control base class, it seems like the derived controls would have to
actively suppress them to get the behavior that we see, doing something
like this:
public class Button : System.Windows.Forms.Control
{
protected override void OnPaint(PaintEventArgs e)
{
// The next line is commented out to suppress the paint event.
// base.OnPaint(e);
}
}