Hi there! Please sign in
help
tags
users
badges
ALL
UNANSWERED
Ask Your Question
Revision history [
back
]
1
initial version
answered
2023-05-31 20:13:01 +0000
david
31
●
16
●
4
Create a new Windows Forms project in Visual Studio.
Add a new Form to the project and set its BorderStyle property to None.
Add a Panel to the top of the Form and set its Dock property to Top.
Add any desired controls to the Panel and set their Dock or Anchor properties as needed.
Add an Event Handler for the Form's Resize event.
In the Resize event handler, set the size and location of the Panel based on the Form's current size and the desired height of the Panel.
Set the SizeGripStyle property of the Form to Show to allow the user to resize the Form.
Test the Form to ensure that it can be resized and that the Panel remains docked to the top of the Form.
Copyright QStack.ai, 2010-2023. Content on this site is licensed under the Creative Commons Attribution Share Alike 3.0 license.
Please note: QStack requires javascript to work properly, please enable javascript in your browser,
here is how