It is required that windows app should have same layout at different resolutions means there should be no effect on layout of app on changing resolution. Here are the steps to do this.
1. Use table layout panel
2. Drag control in cell of tablelayoutpanel and set anchor and dock property.
3. Set rowspan and colspan properties of dragged control to merge cells
4. Set margin and padding of dragged control with respect to cell.
5. drag all controls and follow same steps, complete design using tablelayoutpanel
6. Now set all columns and rows size of tablelayoutpanel = autosize (or in %)
7. Set tablelayoutpanel properties autosize = true,autosizemode = grow and shrink
8. Set Forms properties autosize = true,autosizemode = grow and shrink
9. Run windows app
If your windows app opens in maximum state then set tablelayoutpanel dock property =fill.
Make resolution independent windows app in .net
Tags:
.Net
Related Posts :
.Net
- How to deploy Office Shared Add-in
- unable to create specified activex control Office add-in error
- Get Custom Document Properties / Document Information Panel Values using C#
- Managing custom task panes across multiple documents in shared add in for office 2007 using .NET
- Database Installation using VS setup
- Display Hierarchical Data with TreeView in ASP.NET
- Search Engine style paging in asp.net(C#)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment