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 8946099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:25:28+00:00 2026-06-15T12:25:28+00:00

I am having questions about a program that I’m developing. Sorry if my post

  • 0

I am having questions about a program that I’m developing. Sorry if my post is not clearly legible, as a beginner programming perfectionist I try to explain everything clearly as possible.

I have a Windows Form called frmMain.vb with two separate panels, one is called sidebarPanel and the other one is called mainPanel:

https://i.stack.imgur.com/Zs2lt.png

At runtime, this is how the form looks like:
I reduced the screen to let it fit in this topic, the actual size is 900, 600 through this code at frmMain_Load:

Me.Size = New Size(900, 600)

https://i.stack.imgur.com/gdA3z.png

Now I have created the following piece of code:

With sidebarPanel
    .Top = 0
    .Left = 0
    .Width = 200
    .Height = 300
End With

With mainPanel
    .Top = 0
    .Left = 200
    .Width = 200
    .Height = 300
End With

In case you’re wondering how the sidebar is blue, that piece comes from a dll, that piece of the code I’ve left out to keep this question easy. If you look closely at the source code you can see that the sidebar has a width of 200 and the mainpanel start 200 width from the left.

With that out of the way. I want to know the answer, I’ve searched Stackoverflow, Google and some VB.NET forums about these questions but I seem to be a loner.

How can I make the sidebar a full 100% height to the form so if I resize, the sidebar will change height too. That same question goes for the mainpanel.

Thank you for reading and thank you for the hospitality and the answer.

  • 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-15T12:25:29+00:00Added an answer on June 15, 2026 at 12:25 pm

    You can manually do so in the form’s Resize event, by setting the Height property of the panels to Me.ClientSize.Height, however, it’s easier to just do it all at design time.

    To do so, in the form designer, first position and resize the panels so that they are where you want them to be for the current form size, then set the Dock property appropriately on both. You want the side panel’s Dock property to be set to Top, Left, and Bottom. You probably want the main panel’s Dock property set to Top, Bottom, Left, and Right (all four sides). When the dock property is set properly, the controls will automatically resize themselves as the form is resized.

    After you have set the Dock property, you can test it by resizing the form right in the designer.

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

Sidebar

Related Questions

I asked a question yesterday about a problem that Im having with a program
I'm having a question about recursive functions. I've made this little example program that
I having few questions about typed in ANSI C: 1. what's the difference between
I'm having some trouble with a program using pthreads, where occassional crashes occur, that
I'm having an issue with a small program that I wrote. It does what
Yeah, sorry about asking a stupid n00b question. So I have a C# program.
I've noticed that a few of my classmates have actually tried asking questions about
Happy easters, everyone. I am currently learning topological sort and having a question about
I am just getting into Sharepoint, and I have a question about having a
I have a question about a small problem I am having in Magento. When

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.