Click here to Skip to main content
15,922,584 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi,

I am developing a Windows Form application for creating an incident. I have some issues with whitespaces in my Form. Bases on some values fields are visible or may not.

How can I fit those fields in my form, so that I avoid whitespaces in my form? Thanks in advance
Posted
Updated 26-Mar-11 7:32am
v2

1 solution

I guess you have to modify the locations (top) of the elements based on the user input in the first combobox. Also you need to ad´just the height of the form.

Another, perhaps better, option is to re-design the UI so that you won't have to change the locations and dimensions on-the-fly. Suddenly changing the form size may result to a 'restless' UI.
 
Share this answer
 
Comments
Member 7762422 26-Mar-11 8:42am    
Thanks Mike, with your options will the Windows form adjust automatically? I know there is an option for it, but I don't know the function for it anymore
Wendelius 26-Mar-11 8:45am    
You can use Anchor and Dock properties for the controls to help the modification if that's what you mean.
Member 7762422 26-Mar-11 8:48am    
Yes, i mean Dock properties. Thanks Mike! :-)
Wendelius 26-Mar-11 8:49am    
Glad if it helped :)
Dalek Dave 26-Mar-11 8:54am    
Spot on, good advice.

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