Hi everyone,Can some one tell How to open child window from parent window MenuStrip
and after opening it should be fit inside Parent Window
the Code is
Private void Button_Click_2(object sender, RoutedEventArgs e)
{
ChildWindow cw=new ChildWindow();
cw.owner=this;
cw.Show();
}
when Child Window opens up.it Should be fit inside parent Window and the menustrip should be visible
Thanks
Gunnala Hariom Prasad
Child Window and Parent Window
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Hariom Prasad150 reputationPosted Nov 26, 2013, 11:23 PM EST
Thanks for the Solution
but
cw.Dock=DockStyle.Fill;
Dock Property is not available here
i am using it in 'WPF'
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Nov 26, 2013, 9:20 PM EST
Private void Button_Click_2(object sender, RoutedEventArgs e) { ChildWindow cw=new ChildWindow(); cw.owner=this; cw.Dock=DockStyle.Fill; cw.Show(); }