Solved

Disable MDI parent titlebar from child window

Posted on 2010-08-18
9
881 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
  • 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
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!

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where is this file? 3 33
Visual Studio hangs on running project 6 60
c# DateTime Format validation 4 68
C# XML Get Values 4 34
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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