Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a c# application . that works fine but when i run that app in a laptop of 15 inches then all button and textboxes are fumbled or changed from their original locations
Posted

This is because the application UI was designed for a minimum accepted screen resolution that is higher then the maximum resolution from your laptop. So you should modify your UI and make it more adaptable to the screen resolutions changes. The solution depends of the application type, for example if is a Windows forms application you could anchor your buttons in the right way, and for bigger content to use scrollbars.
 
Share this answer
 
v2
Comments
[no name] 24-Mar-14 7:51am    
so you mean to say to redesign the whole software
BillWoodruff 24-Mar-14 8:05am    
As Raul just suggested to you, you can set the 'Anchor Property of Controls so they remain visible, and add scroll-bars where needed.
lukeer 24-Mar-14 8:35am    
Not the whole software, just the UI.
Raul Iloc 24-Mar-14 8:37am    
Like I said in my solution, only the UI part should be redesigned, and only the forms with problems (if you don't have time for all).
[no name] 24-Mar-14 7:58am    
Is there any other solution availaible sir, I have that software installed in client's machine . It works fine but when they installed it in some low dimensional 15 inch laptop it gives this problem
Hi,

You should change UI, use table layout panel and dock-Anchor properties of controls
run your app. and resize form check layout

-> you can also change font size of controls based on form's maximum size, if you have too many controls on form

Happy Coding!
:)
 
Share this answer
 
Comments
[no name] 24-Mar-14 8:40am    
sir i have used dock and anchor properties but i don't think that works
Aarti Meswania 24-Mar-14 9:00am    
I am just a code project member as you are, please do not use "sir" :)
have you put all controls properly in table layout panel?
[no name] 24-Mar-14 9:18am    
No , i have not used table layout control but i have used dock and anchor properties
Aarti Meswania 24-Mar-14 9:22am    
Is your form have too many controls?
when you run app can you see there some extra unused space which you think you can utilized it then paste controls properly inside table layout panel
[no name] 24-Mar-14 10:37am    
i have not tested or used table layout and cannot say it could solve problem or not. i will choose to do it in all forms if there is not other solution availaible as it is very time consuming

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