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

  • SEARCH
  • Home
  • 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 8229679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:52:44+00:00 2026-06-07T16:52:44+00:00

On Visual Studio 2008, I have an instance of System.Windows.Forms.TabPage. There are many controls

  • 0

On Visual Studio 2008, I have an instance of System.Windows.Forms.TabPage.

There are many controls on the TabPage.

Therefore, there is a vertical scroll bar on the TabPage.

Numerous times, all of the controls get uniformly shifted down, making lots of empty space at the top of the TabPage. I must scroll down to view the first control, which should be at the top of the TabPage. This happens within Visual Studio and subsequently at runtime as well.

No event seems to trigger this shift. It just happens. Viewing the Location property for each control shows that they all shifted downwards by the same value.

I have had to manually fix this several times. Then the problem comes back, usually days later. I can work on the form. It looks good. Close it. Come back later, and the controls have all shifted down by a fixed amount.

July 14, more information

Visual Studio 2008 is changing this:

this.groupBoxTrees.Location = new System.Drawing.Point(3, 3);

To This:

this.groupBoxTrees.Location = new System.Drawing.Point(3, 1030);

Why? When? For what reason? I don’t know.

Note the value 1030 is random too. All I can say is that for some reason VS adds a constant value to each Location.Y property on every control on a TabPage. All of the controls are locked.

Any suggestions?

Thanks!

  • 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-06-07T16:52:46+00:00Added an answer on June 7, 2026 at 4:52 pm

    Thanks to a colleague, I have found out what’s going wrong.

    If the form is saved when the scroll bar on the TabPage has been moved down, Visual Studio studio adds a number to Location.Y of every control on the TabPage. That value is correlated to the distance the scroll bar has moved down.

    The problem can be prevented by always moving the scroll bar to the top of the form before saving changes made by the form.

    Why does this happen? There is no way for me to find out. It may be related to the fact that I’m using two monitors. But then again, if that helps to cause the problem, then you would think that Location.X would be changed, rather than Location.Y.

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

Sidebar

Related Questions

I have a problem debugging Invoke() or BeginInvoke() in Visual Studio 2008. For instance
Windows XP Visual Studio 2008 I have downloaded and unzipped the boost_1.33.1. We have
I have Visual Studio 2008 running from Windows XP. Our server is Windows 2003
Is there any way to make the Visual Studio 2008 help system more object
I'm using Visual Studio 2008 and have created a setup project for my application.
I am using working on a c++ application in Visual studio 2008 I have
Visual Studio C++ 2008 I have the following code in my server.h file. #if
In Visual Studio 2008 (C++) I have a class destructor (Let's call this class
Hi I am using Visual Studio 2008 and I have an .mdf in the
gcc 4.4.2 / Visual Studio C++ 2008 I have been using cmake on linux,

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.