Hi i am develping a desktop application, i get this issue many times , sometimes when i create a new form and all buttons and other form items are placed and run 1st time , it take the same height and width , just like fixed height and width, then if i try to add another button or any form item below that then it hide some part or whole of the button even i try to inecrease the height or width in design view , still after running it hide the button or any item added. I am attaching an image , the button was added later but it dont show the button even after increasing the height or width of form in design mode. Kindly help as soon as possible. Thanks in advance
Loading

Alpesh ManiyaPosted Jan 19, 2024, 9:35 AM
It seems like you're facing layout issues in your desktop application. Here are quick tips:
1. Anchoring and Docking:
- Check the "Anchor" or "Dock" property of the controls, ensuring proper resizing behavior.
2. Z-Order:
- Adjust the Z-Order of controls using "Bring to Front" or "Send to Back" options.
3. Container Controls:
- Ensure containers (like panels) are large enough for all controls.
4. AutoSizeMode:
- Set appropriate "AutoSizeMode" for controls in TableLayoutPanel or FlowLayoutPanel.
5. Minimum Size:
- Adjust the form's "MinimumSize" property if controls are not visible.
6. Layout Events:
- Review custom layout logic in code, especially in events like `Resize` or `Layout`.
7. Snap to Grid:
- Check if "Snap to Grid" is enabled in the form designer.
Review recent code modifications for any unintended layout changes. If the issue persists, provide more details for a targeted solution.