I have a MDi Form and three other forms.
all three forms are accessing form MDi Form.
here is the MDi form:-
I do the function to send the control backward when a form being open.
here is the code to send them back:-
if (MdiChildren != null)
{
btnaddProduct.SendToBack();
btnpurchaseDetails.SendToBack();
btnRegister.SendToBack();
}
Like this I want to bring them toFront when I close the opened form.
here is the form look after I close a form:-
I want your help to bring those three buttons to Front .please send me code to function this.

Riyaz AkhtarPosted Jul 24, 2013, 4:47 AM
Create MdiChildActivate event in ur mdi form and write below code to show ur buttons:
private void mdi_MdiChildActivate(object sender, EventArgs e)
{
Form f = this.ActiveMdiChild;
if (f==null)
{
button1.BringToFront();
button2.BringToFront();
button3.BringToFront();
}
}
Bineesh ViswanathPosted Jul 24, 2013, 10:30 AM
VulpesPosted Jul 24, 2013, 4:45 AM