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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:44:21+00:00 2026-06-06T21:44:21+00:00

I am using a flowlayoutpanel which have a lot of buttons per logic sake.

  • 0

I am using a flowlayoutpanel which have a lot of buttons per logic sake. I’m having an issue of when I resize the window, I’m not I’m not able to see all the buttons lined up horizontally when the window gets smaller. Instead as the window gets smaller, the buttons drops down to the next line. Can anyone help me on how to resolve this issue? I just want the buttons to line up horizontally, when the window gets smaller, have a horizontal scrollbar. Below is what I have.

fLayoutPnl.Controls.Add(btn1);
// snipped adding buttons from 2 to 15
fLayoutPnl.Controls.Add(btn16);
fLayoutPnl.Dock = System.Windows.Forms.DockStyle.Top;
fLayoutPnl.Location = new System.Drawing.Point(0, 10);
fLayoutPnl.Name = "fLayoutPnl";
fLayoutPnl.Size = new System.Drawing.Size(1245, 30);
  • 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-06T21:44:23+00:00Added an answer on June 6, 2026 at 9:44 pm

    If you dock the flowlayoutpanel on the top, it take the size of the parent control.
    So if you want a horizontal scroll, you need to set the AutoScrollMinSize of the form (or usercontrol).

    Otherwise, you can do this :

    this.AutoScroll = true;    
    this.fLayoutPnl.Dock = System.Windows.Forms.DockStyle.None;
    this.fLayoutPnl.AutoSize = true;
    this.fLayoutPnl.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
    this.fLayoutPnl.Location = new System.Drawing.Point(0, 10);
    this.fLayoutPnl.Name = "fLayoutPnl";
    this.fLayoutPnl.Size = new System.Drawing.Size(1245, 30);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem using custom components at runtime. I have this custom FlowLayoutPanel
I have a Windows Forms application which is using a FlowLayoutPanel control to display
I'm building a WinForms application Window (form), inside that I'm using a FlowLayoutPanel, with
I have a WinForm application using a FlowLayoutPanel that displays .TIFF files that have
I have a custom container control (deriving from FlowLayoutPanel ) which contains zero or
I'm having trouble using the flowlayoutPanel in a C# winform application. What I basically
Using the Redis info command, I am able to get all the stats of
Using RestKit 0.10.1, I have objects served similar to this json format: {objects: [
I have a FlowLayoutPanel that contains 56 checkboxes. The checkboxes are used in three
Using SolrNet for querying & faceting. I have a combination of int, tdate and

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.