dear friends i have a problem please help
I have one mdi form,one child form and panel in child form and some user controls, and on mdi there is menu strip.
I have called one user control on panel of child form and child form in mdiparent.
I wan that whenever I click one button in user control a particular menustrip item must be clicked
Loading
Gomathi PalaniswamyPosted Oct 12, 2010, 4:08 AM
take the below coding as example and make it your self
for (i = 0; i < sourcefrm.Controls.Count; i++)
{
if (sourcefrm.Controls[i] is GroupBox)
{
GroupBox rg = (GroupBox)sourcefrm.Controls[i];
foreach (Control c in rg.Controls)
{
if (c is TextBox)
{
c.Enabled = true;
}
if (c is ComboBox)
{
c.Enabled = true;
}
if (c is DateTimePicker)
{
c.Enabled = true;
}
}
}
}