get an indication when a control added to a pnel in CF 3.5
-
when a control is added to the panel i need to store some details about that control ,for that i tried to use the way of "panel.Control.add()" but i can't override the add method of the controlcollection of the panel. i'm using c# 3.5 CF. So is there any way of achieving this , appreciate your ideas, thanx in advance .
-
when a control is added to the panel i need to store some details about that control ,for that i tried to use the way of "panel.Control.add()" but i can't override the add method of the controlcollection of the panel. i'm using c# 3.5 CF. So is there any way of achieving this , appreciate your ideas, thanx in advance .
.NET offers this event[^]. If that isn't available on CF, your best bet might be to provide an AddControl() method which does whatever you want it to do; the disadvantages would be: Controls.Add() remains available, and Visual Designer would not call your method. :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.