I have a form which contains one tabcontrol contains 7 tab pages.I want to find the controls(Label,TxtBox,Cmbo,Btn)inside the form.But when finding it shows only tabpages.I want to get control name inside tabpages,How it is possible.
Sample code i have written is
foreach (Control ctrl in Page.Controls)
if (ctrl is TextBox)
//My code is here
simply i want to get the controls inside tabpages without declaring Tabpages becaues i want to dind that dynamically in each and evary form
Please help me with the code..
You must Sign In To post reply