M
Mark Rae
Dinesh,
That has certainly worked - thanks very much. I'm quite surprised, though,
that it is necessary to reference controls in the ControlCollection by their
index rather than their name - can the FindControl method be used here...?
Best,
Mark
If you load frmNewApp form with below code in cmdNewApp's click event;
frmNewApp form2 = new frmNewApp();
form2.ShowDialog(this);
you can access controls in frmConfigReg form like below.
//if you know the index id
ComboBox cb = (ComboBox) ((frmConfigReg )Owner).Controls[1];
//OR
ControlCollection cc = (ControlCollection) ((frmConfigReg)Owner).Controls;
foreach(Control c in cc)
{
if (c.Name=="cmbApps")
{
//get values and validate
}
}
hope this is what you want
That has certainly worked - thanks very much. I'm quite surprised, though,
that it is necessary to reference controls in the ControlCollection by their
index rather than their name - can the FindControl method be used here...?
Best,
Mark