Skip to content

Make SettingsForm resizable with scrollbars - #9

Merged
ExtCan merged 2 commits into
mainfrom
copilot/add-resizable-main-window
Dec 27, 2025
Merged

ExtCan merged 2 commits into
mainfrom
copilot/add-resizable-main-window

Conversation

Copilot AI commented Dec 27, 2025 •

Copy link
Copy Markdown
Contributor

The SettingsForm window was previously fixed-size (FormBorderStyle.FixedDialog), preventing users from adjusting the window size or scrolling when content exceeded viewport dimensions.

Changes

  • Form properties: Changed FormBorderStyle to Sizable, enabled MaximizeBox, added MinimumSize constraint (650x550), and enabled AutoScroll
  • Layout anchors: Added proper Anchor styles to TabControl (expand with window) and dialog buttons (stay bottom-right)
// Before: Fixed dialog
this.FormBorderStyle = FormBorderStyle.FixedDialog;
this.MaximizeBox = false;

// After: Resizable with scrollbars
this.FormBorderStyle = FormBorderStyle.Sizable;
this.MaximizeBox = true;
this.MinimumSize = new Size(650, 550);
this.AutoScroll = true;

_tabControl = new TabControl {
    Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right
};

Scrollbars appear automatically when window is smaller than content. Implementation follows existing pattern in ChatForm.cs.

Original prompt

The main windows needs to be resizable and have scroll bars for pages that exceed the length of the window.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: ExtCan <60326708+ExtCan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add resizable main window with scroll bars Make SettingsForm resizable with scrollbars Dec 27, 2025
Copilot AI requested a review from ExtCan December 27, 2025 01:26
@ExtCan
ExtCan marked this pull request as ready for review December 27, 2025 01:48
@ExtCan
ExtCan merged commit 48a5d02 into main Dec 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants