I have an application which fits to full screen mode in my monitor (1920 X 1080) resolution on loading of the form. Once it loads, I will drag the application to another monitor having (1600 X 900) resolution (2 monitors connected to same PC). All the controls will be loosing their location and will be like hidden. Please anybody provide solution for this?
1 Answers
This problem may be more efficiently solved depends on how your format look like.
But generally, you need:
Good way to format your Form, such that it is "robust" against changeable screen size.
you can check the
Container
onWindows Form
likePanel
,FlowLayoutPanel
, orTableLayoutPanel
as well asSplitContainer
andSplitter
.All those tools help you to format how your app look.
Flexible way to put and to size your control.
You can learn more about WinForm
Control
property calledDock
andSize
to help you put and size your control. And lastly,Event handler for the
Resize
event of theForm
(and in more complex case,Resize
of theContainer
There is a limit on what the automatic formatting can do to you. This event handler is to handle whatever you think it cannot be properly handled by all the built-in properties.
You can also learn about BootStrapping. It may help you to format your app.
Windows Form
? The question is rather general otherwise. – Ian