Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Label placement c# winform - Album on Imgur[^]

The first picture is when I launch the program, the second is in the designer. I would like to know what is the best way to have it so the combo boxes and textboxes don't overlap.

What I have tried:

I have tried moving the labels and textboxes around but they seem to overlap regardless.

I have tried setting the anchors on the combobox and textbox to Top Left. They still overlap each other.

I have tried setting Locked to True in the properties for each label and combobox/ textbox.

I Have tried making the form bigger.
Posted
Updated 2-Aug-21 23:21pm
v4

1 solution

Seems, that Anchor property has been messed up.
I'd change that property for Combobox and TextBox to: Top, Left
 
Share this answer
 
Comments
Will Sewell 3-Aug-21 5:10am    
Thanks for your help Maciej but they still overlap
Maciej Los 3-Aug-21 9:41am    
DO you use some event to change the size and location of controls?
Will Sewell 3-Aug-21 9:53am    
Hey, I just fixed it a moment ago using a table layout panel but i'm not sure how to now close this question or mark it as solved.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900