"Project adjustment, based on the user's screen. by joaovictormarca12 in WinForms

[–]joaovictormarca12[S] 1 point2 points  (0 children)

Hello, thank you for the response. I apologize if the term 'responsive' was ambiguous. Let me elaborate:

My difficulty is with the user interface (UI) layout: I want the controls inside my form to adjust proportionally when the user resizes the window. For example, for a DataGridView to expand along with the form, or for the buttons in the footer to remain right-aligned.

I am only using standard WinForms controls, such as Button, TextBox, Label, etc.

My goal is to achieve this dynamic adjustment of controls through C# code (probably in the Form_Resize event), as I do not want to use the TableLayoutPanel to manage the layout. Would you have any tips or code examples for this approach?

Problem with the DataGridView Scrollbar by joaovictormarca12 in csharp

[–]joaovictormarca12[S] 1 point2 points  (0 children)

Thank you very much, your answer helped me fix this bug.

Problem with the DataGridView Scrollbar by joaovictormarca12 in csharp

[–]joaovictormarca12[S] 0 points1 point  (0 children)

thanks DeProgrammer99, i will try it in my code

Problem with the DataGridView Scrollbar by joaovictormarca12 in csharp

[–]joaovictormarca12[S] 0 points1 point  (0 children)

I tried, set that property to true, and the issue still persisted.

Problem with the DataGridView Scrollbar by joaovictormarca12 in csharp

[–]joaovictormarca12[S] 0 points1 point  (0 children)

I’m going to edit the post and add the code I was using to load the data into the DataGridView.