Click here to Skip to main content
15,908,274 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.

I want to design form in my window application for any resolution.

will you please suggest how can i design window form to work in all resolution.

Thanks
Vipul
Posted

using table layout panel
&
use efficiently dock, anchor, margin, padding etc design related properties of controls.

Happy Coding!
:)
 
Share this answer
 
Comments
Vipul J Patel 19-Mar-13 3:01am    
Will you please provide a sample application ? because i'm new in desktop application.
Aarti Meswania 22-Mar-13 3:23am    
hi it's quite simple
for example....
just take a table layout panel set property
Dock = fill

now in table layout panel add two row and two column
set their size(width/height) = Percentage (50)

now paste a label control inside table layout panel and set label's properties
Autosize=false
Dock=fill
text alignment = middle center

now run form
just resize it runtime you will able to see effects
adrian@csdev 21-Mar-13 18:53pm    
Hi vipul send me a request email to info@csdev.co.za and I will reply with a sample project to illustrate it in windows forms application

Regards
Using WPF(Windows presentation foundation) you will get desire resule
 
Share this answer
 

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