c# - label in MDI parent form do not remain in background of child form? -


please guide , me.

i have mdi parent form has label @ center (to display application name in center). on opening form in mdi parent, label should appear on side of newly opened form, on showing child form, label appears in front of newly opened form (appears newly opened form between label , mdi parent).

how manage please guide me.

thanks

public partial class mymdiform : form {     public mymdiform()     {         initializecomponent();         foreach (control control in controls)         {             if (control mdiclient)                 control.paint += mdibackgroundpaint;         }     }      private void mdibackgroundpaint(object sender, painteventargs e)     {         var mdi = sender mdiclient;         if (mdi == null) return;          e.graphics.clip = new system.drawing.region(mdi.clientrectangle);         e.graphics.drawstring("*** name here ***",this.font,brushes.red,100f,100f);     } } 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -