enumerate the contols of a form
I want to access to several controls of a form in a function . You can do that in C# :
"Impossible d'effectuer un cast d'un objet de type 'FastReport.Dialog.ButtonControl' en type 'System.Windows.Forms.Control'."
How can I do the same in fastreport
thank you
foreach( Control ctrl in this.Controls )
{
if ( ctrl.Name == name ) // Ou Tag.
return ctrl;}
but in fastreport I have this error message :"Impossible d'effectuer un cast d'un objet de type 'FastReport.Dialog.ButtonControl' en type 'System.Windows.Forms.Control'."
How can I do the same in fastreport
thank you
Comments