Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6764057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:32:58+00:00 2026-05-26T14:32:58+00:00

Best shown with an image, I can drag the forms off the edge of

  • 0

Best shown with an image, I can drag the forms off the edge of the MDI parent, and scroll bars appear.

Id much rather that child forms are locked to the area of the Parent form.

Ive done searching for a solution, (A lot of these are answered 2+ years ago, so im hoping they are outdated) and only come across people checking co-ordinates on the Move event…. Great, but what if I have 20 forms.. or 100 forms. I cant code all of them, its a bit silly. Surely there is a property somewhere I can just set on the parent form.

MDI Scrollbar problem

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:32:58+00:00Added an answer on May 26, 2026 at 2:32 pm

    you can do something like this…

    Step !: you have to make base form( like user control)

    and place this code in that form

     namespace Controls
     {
      public partial class BaseForm : Form
      {
        public BaseForm()
        {
          InitializeComponent();
          StartPosition = FormStartPosition.WindowsDefaultLocation;
          MaximizeBox = false;
          Width = 806;
          //Width = 850;
          //Height = 760;
          Height = 730;
          //Width = 790;
          //Height = 617;
        }
    
    
        protected override void WndProc(ref Message m)
        {
          const int WM_SYSCOMMAND = 0x0112;
          const int SC_MOVE = 0xF010;
          //ShowScrollBar(this.Handle, (int)ScrollBarDirection.SB_BOTH, false);
          switch (m.Msg)
          {
            case WM_SYSCOMMAND:
              int command = m.WParam.ToInt32() & 0xfff0;
              if (command == SC_MOVE)
                return;
              break;
          }
          base.WndProc(ref m);
        }
      }
    }
    

    and then in every form you have to specify like this…

    public partial class childform : BaseForm
    {
       .......
    }
    

    Make sure all your child forms size is should be size specified in base form

    • minsize is 0,0

    • max sixze is also 0,0

    • startposition – windowsdefaultlocation

    • windowstate – normal

    I hope it will helps you ..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Got a weird bug best shown by this page http://www.zoecormier.com/freelance/ Scroll down to the
I can't best describe this in words, so I'll show you with pictures. Here's
Best method to add/remove webcontrols or user controls in asp.net for dynamic forms without
I have the image path as shown below: <img src='Uploads/ + document.getElementById(<%=currentDirectory.ClientId%>).value + /
I can tell it best by explaining the query I have, and what I
I can get a 32-bit image to be displayed in TImage with GDIPlus that
Can anyone tell me how the best way to create this menu popup with
I want to design a webpage as shown in the image below. There are
I can't figure out how to get flot.pie to change the data shown in
What is the best solution/API for this? On my site users upload image, tag

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.