Boris said:
sorry for this - maybe very stupid - question, but i'm very new C# (few
days yet)
How/Where can i override this Event?
I think i need to create my own Label-Class? Where/How and how to use it
then?
thank you very much
Boris
It's not that difficult, actually. Just create a new class 'LabelEx' and
have:
using System;
using System.Windows.Forms;
namespace YourNamespace
{
public class LabelEx : Label
{
public LableEx()
{
}
protected override void OnPaintBackground(PaintEventArgs e)
{
// don't call base.OnPaintBackground(e) so things don't flicker
}
}
}
Now in you form create new LabelEx objects instead of Label objects and
it will use your extended class
--
..o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.
| Matt Kunze Sometimes there's a point.|
| Build Master Fooly Fool This is not one of those |
| DataSplice Software Developer times. |
=============================================================