Solved

Disable MDI parent titlebar from child window

Posted on 2010-08-18
9
887 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 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

617 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