ListBox methods, inherited from Control

  • Thread starter Thread starter David
  • Start date Start date
D

David

Hi
ListBox, ListView and other controls have inherited
methods and properties.
I could not understand how to use them.
For example if I have
protected override void OnClick( System.EventArgs e)
{
//.......
base.OnClick(e);
}
It is called only if I click in a form, but not in
ListBox or ListView.
How can I recognize which control involved if the above
problem can be resolved.
Thanks.
 
Hi David,

I test it for a ListBox and it worked perfectly, I wonder you are doing
something wrong.. Did you extend the ListBox to create ur class?

Nirosh.
 
Back
Top