Click here to Skip to main content
15,897,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Design Window Form in 1366*768 resolution ,but when that form run on 1024*768 resolution then it not display full it will be cut
so i want my form is run without cut in any resolution can any one help me about this issue
i don't wont scroll option
Posted
Comments
Nathan Minier 12-Dec-14 7:12am    
Just to be clear: you want to run set resolution window on a potentially lower-resolution desktop in a window without scrolling or changing resolution.

If that's correct, you're going to need to dig into the DirectX library and implement a wrapper for your WinForm application or will probably need to switch from windows forms to a different framework (such as the MonoGame library) which will do this out of the box.

1 solution

You can't really do that with most applications, and almost certainly not with WinForms apps.

You can do it if you design the app carefully - the way that VS is designed with a central "work surface" and dockable tools that "fit in" round that. But for a standard dialog or form based application it doesn't often work well at all.

With Winforms it's a real problem: you can use anchoring and panels and such like to autosize controls, but that doesn't affect any text: so you end up with tiny buttons with big text on them so you can't actually read it.

You can do it in WPF - provided your users don't mind tiny (and near unreadable) text as it is designed to scale fonts at the same time as controls. But even then, it rarely works well.

I suspect you best solution is to look at your UI and redesign it to make it more usable regardless of the resolution. Sorry - but there is no magic bullet for this.
 
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