?
Solved

How do I Remove MDI title bar from the form when my child window is maximized?

Posted on 2008-10-11
3
Medium Priority
?
897 Views
Last Modified: 2011-10-19
Hi folks...
I've an application like notepad, and when I click in a new document link..
The form open an MDI child in forwindowstate = maximized
The MDI child open a new menu bar above my application menu.

i want to remove the MDI child menu bar.

This is my code

            mdiChild = new Form();
            mdiChild.Text = "Document" + count.ToString();

            mdiChild.MaximizeBox = false;
            mdiChild.MinimizeBox = false;
            mdiChild.StartPosition = FormStartPosition.CenterScreen;
            mdiChild.ControlBox = false;
            mdiChild.ShowIcon = false;    
            mdiChild.MdiParent = this;
            editTextBox = new TextBox();
            editTextBox.Multiline = true;
            editTextBox.Dock = DockStyle.Fill;
            mdiChild.Controls.Add(editTextBox);
            mdiChild.WindowState = FormWindowState.Maximized;
            mdiChild.FormBorderStyle = FormBorderStyle.None;            
            mdiChild.Show();

Please check the screenshot.
Thanks everybody for your help
0
Comment
Question by:nkoriginal
[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
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 2000 total points
ID: 22696526
I have a VB.NET sample for the same issue
Please read comment No. ID:21283382 by author:VBRocks which tells how to solve the problem
http://www.experts-exchange.com/Programming/Languages/.NET/Q_23294648.html
0
 
LVL 5

Author Comment

by:nkoriginal
ID: 22699677
Thanks Ragi for your answer. but i tried the information in that link, and it doesn't work. also I checked that page before post my question here, but i dont know why it doesn't work.

Do you know another way??

thanks
0
 
LVL 5

Author Comment

by:nkoriginal
ID: 22704307
Ragi, I tried the information in that link, in different way and it worked!
Thanks

By the way, if somebody want the code in C# is:


        private void Form2_Resize(object sender, EventArgs e)
        {
 
            if (this.WindowState == FormWindowState.Maximized)
            {
                this.FormBorderStyle = FormBorderStyle.None;
            }
            else
            {
                this.FormBorderStyle = FormBorderStyle.Sizable;
            }
 
        }

Open in new window

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

800 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