It depends on your application type or UI framework/library you are using. You need to tag such important things in your question when UI is involved. So, sorry, my answer will be pretty general.
You should make you layout fluid and avoid any absolute size and positions. Any at all. For example, with
System.Windows.Forms
everything can be done using the properties
Dock
and
Padding
, and with frameworks based on XAML (as in case of WPF), you can use
Grid
(which is more flexible in most cases) and/or
DockPanel
.
Please see my past answers:
Zom Out malfunctions when Screen resolution changes[
^],
how to dock button so that it can adjust with the form[
^].
Also, what you are talking about is not the screen resolution. It is the size of screen in pixels. Resolution is something different (lines per inch or mm, pixels per inch or mm, etc.) and is almost irrelevant.
—SA