Solved

Disable MDI parent titlebar from child window

Posted on 2010-08-18
9
883 Views
Last Modified: 2012-05-10
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.
0
Comment
Question by:RakeshBhandari
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
9 Comments
 
LVL 14

Expert Comment

by:Dhanasekaran Sengodan
ID: 33472614
0
 
LVL 2

Author Comment

by:RakeshBhandari
ID: 33472799
Sorry . I did't understand anthing from that url. Eventhough that metioned about child window.
But i asking about parent window
0
 
LVL 2

Author Comment

by:RakeshBhandari
ID: 33482302
Anybody answering this question ?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:mohd_haq
ID: 33482316
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.
0
 
LVL 2

Author Comment

by:RakeshBhandari
ID: 33482423
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?
0
 
LVL 2

Author Comment

by:RakeshBhandari
ID: 33482431
Accoring to  my code is
     mychildwindoe mychild=new mychildwindoe();
    mychild.ShowDialog()  ;
0
 
LVL 6

Accepted Solution

by:
mohd_haq earned 250 total points
ID: 33483498
Hi,
may be you can disable the child window. this will ultimately disable the parent mdi window.

try this in your child windows button click event.

 
private void button1_Click(object sender, EventArgs e)
        {

            this.Enabled = false;

            // do something
            Thread.Sleep(3000);
            //end
        
            this.Enabled = true;
        }

Open in new window

0
 
LVL 2

Author Comment

by:RakeshBhandari
ID: 33499496
there no change. Same result only geting
0
 
LVL 2

Author Closing Comment

by:RakeshBhandari
ID: 33539377
not given full answer
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question