Click here to Skip to main content
15,921,941 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: c# Pin
Luc Pattyn29-Sep-07 12:27
sitebuilderLuc Pattyn29-Sep-07 12:27 
GeneralRe: c# Pin
Lutosław29-Sep-07 12:37
Lutosław29-Sep-07 12:37 
GeneralRe: c# Pin
Christian Graus29-Sep-07 13:24
protectorChristian Graus29-Sep-07 13:24 
QuestionMenustrip in MDI child Form doesn't show when run Pin
Paul Chin PC28-Sep-07 16:31
Paul Chin PC28-Sep-07 16:31 
AnswerRe: Menustrip in MDI child Form doesn't show when run Pin
TJoe30-Sep-07 10:26
TJoe30-Sep-07 10:26 
QuestionRe: Menustrip in MDI child Form doesn't show when run Pin
Paul Chin PC30-Sep-07 16:09
Paul Chin PC30-Sep-07 16:09 
AnswerRe: Menustrip in MDI child Form doesn't show when run Pin
TJoe30-Sep-07 16:23
TJoe30-Sep-07 16:23 
GeneralSolution to Merging and Un-Merging MDI Child's ToolStrip Pin
Paul Chin PC30-Sep-07 17:50
Paul Chin PC30-Sep-07 17:50 
Thanks Tom Smile | :)

Based on the MSDN links that you shared, I manage to get the Child's ToolStrips to merge and unmerge.

Solution:

In Parent MDI Form, insert an event handler called MdiChildActivate. This can
be done via the Properties Grid. Then, insert the following code within this
event handler:
<code>
private void MainForm_MdiChildActivate(object sender, EventArgs e)
{
    
     ToolStripManager.RevertMerge(toolStrip1);//To remove any existing merge
     if (this.ActiveMdiChild != null)
     {
         try
         {
              ToolStripManager.Merge((ActiveMdiChild as PictureForm).toolStrip2, toolStrip1);
         }
         catch (Exception err) { };
      }
}
</code>


MainForm is the parent MDI Form, toolStrip1 is the Parent's Toolstrip, toolStrip2 is my child's ToolStrip and PictureForm is my Child MDI Form.




------------------------------------------------
Paul Chin

QuestionData-Posting Ideas? Pin
basi001428-Sep-07 6:06
basi001428-Sep-07 6:06 
Questiondesktop Pin
varun.g26-Sep-07 23:15
varun.g26-Sep-07 23:15 
AnswerRe: desktop Pin
DigiOz Multimedia28-Sep-07 8:57
DigiOz Multimedia28-Sep-07 8:57 
QuestionDefaultValuesNeeded Pin
somagunasekaran26-Sep-07 20:41
somagunasekaran26-Sep-07 20:41 
QuestionCrystal report display problem Pin
bttds26-Sep-07 15:50
bttds26-Sep-07 15:50 
AnswerRe: Crystal report display problem Pin
Smashing_Blizzard30-Sep-07 8:10
Smashing_Blizzard30-Sep-07 8:10 
GeneralRe: Crystal report display problem Pin
bttds2-Oct-07 15:09
bttds2-Oct-07 15:09 
QuestionHow to create Resolution independent windows forms in winforms 2.0 Pin
kuncha25-Sep-07 2:30
kuncha25-Sep-07 2:30 
AnswerRe: How to create Resolution independent windows forms in winforms 2.0 Pin
DigiOz Multimedia26-Sep-07 18:58
DigiOz Multimedia26-Sep-07 18:58 
GeneralRe: How to create Resolution independent windows forms in winforms 2.0 Pin
Nikhil Dayalpawar15-Nov-11 0:07
professionalNikhil Dayalpawar15-Nov-11 0:07 
QuestionHow to create the DataGridViewLinkColumn Pin
somagunasekaran25-Sep-07 0:08
somagunasekaran25-Sep-07 0:08 
AnswerRe: How to create the DataGridViewLinkColumn Pin
DigiOz Multimedia26-Sep-07 19:27
DigiOz Multimedia26-Sep-07 19:27 
AnswerRe: How to create the DataGridViewLinkColumn Pin
bttds27-Sep-07 0:02
bttds27-Sep-07 0:02 
Questionwant to change startup form in windows application Pin
Khawar Abbas125-Sep-07 0:01
Khawar Abbas125-Sep-07 0:01 
AnswerRe: want to change startup form in windows application Pin
Eduard Keilholz25-Sep-07 2:26
Eduard Keilholz25-Sep-07 2:26 
AnswerRe: want to change startup form in windows application Pin
bttds26-Sep-07 20:39
bttds26-Sep-07 20:39 
QuestionCombining 2 projects into 1 (part II) Pin
heztheone24-Sep-07 19:48
heztheone24-Sep-07 19:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.