The Tag property is defined by the Control class.
The Tag property is defined by the Control class. Therefore, you don't need reflection at all; you can simply write object tag = control. Tag; Your code isn't working because the control's actual type (eg, NumericUpDown) doesn't define a separate Tag property, and GetProperty doesn't search base class properties.By the way, in your first if statemeant, you can simply write if (control is TextBox).
Yes, but still control. Tag comes as null. – 0x49D1 Jul 19 '10 at 13:19 That means you didn't set it to anything.
– SLaks 1 Jul7 at 13:20 I set numericupdown control's, that is located on the form, tag property to some value.. But in the loop there is no NumericUpDown controls..Instead there are UpDownButton and UpDownEdit. Thanks for the first "if" ;) – 0x49D1 Jul 19 '10 at 13:23 oops..read your edited answer..Will check now something else..Thank you – 0x49D1 Jul 19 '10 at 13:25 it helped! Added this: if (control.Controls.
Count == 0 || (control is NumericUpDown)) { UtilityBindData(control, bind); } else { control.Controls. BindData(bind); } turns out that NumericUpDown is complex control that consists of several other base ones. – 0x49D1 Jul 19 '10 at 13:29.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.