RakeshBhandari
asked on
Disable MDI parent titlebar from child window
I has Form1 As MDI parent form and Form2 as child form. My requirment is when i click
Form2's (ChildForm) button should disable Form1's(parentForm) titlebar and
sametime minimize,maximize,close button of the parent form should enable.
I not expecting " FormBorderStyle = FormBorderStyle.None " answer
I using VS 2008 and coding in c# VB.NET Windows application.
Form2's (ChildForm) button should disable Form1's(parentForm) titlebar and
sametime minimize,maximize,close button of the parent form should enable.
I not expecting " FormBorderStyle = FormBorderStyle.None " answer
I using VS 2008 and coding in c# VB.NET Windows application.
http://www.windowsdevelop.com/windows-forms-general/disabling-child-window-titlebar-using-user32dll-c-5974.shtml
ASKER
Sorry . I did't understand anthing from that url. Eventhough that metioned about child window.
But i asking about parent window
But i asking about parent window
ASKER
Anybody answering this question ?
Hi,
May be you can invoke the child form by using childform.ShowDialog() instead of Show() method. Since this will make the child form as modal, your parent mdi form will be disabled and you cannot close the parent form. Hioe this helps you.
May be you can invoke the child form by using childform.ShowDialog() instead of Show() method. Since this will make the child form as modal, your parent mdi form will be disabled and you cannot close the parent form. Hioe this helps you.
ASKER
Hi,
When i give childform.ShowDialog() this creating new childwindow. but still old child window existing there.
My requirment is when i click child window button some process happening . between this process dont allow user click parent window or child window. how will do that?
When i give childform.ShowDialog() this creating new childwindow. but still old child window existing there.
My requirment is when i click child window button some process happening . between this process dont allow user click parent window or child window. how will do that?
ASKER
Accoring to my code is
mychildwindoe mychild=new mychildwindoe();
mychild.ShowDialog() ;
mychildwindoe mychild=new mychildwindoe();
mychild.ShowDialog() ;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
there no change. Same result only geting
ASKER
not given full answer