L
Laurent
Hi All
I tried to find in the framework .NET 2.0 (but non result) method or
property that can be used to convert millimeters to pixels depending on the
resolution of the screen.
I want to resize and position buttons on the screen at a fixed size given in
millimeters.
The dpiX and dpiY returns always 96 (or 120 depending on the display
properties).
I can compute a correct value using the API GetDeviceCaps but I would like
to use the framework and no call to Win32 API using platform invoke.
Anyone has an idea ?
Thanks
Laurent
I tried to find in the framework .NET 2.0 (but non result) method or
property that can be used to convert millimeters to pixels depending on the
resolution of the screen.
I want to resize and position buttons on the screen at a fixed size given in
millimeters.
The dpiX and dpiY returns always 96 (or 120 depending on the display
properties).
I can compute a correct value using the API GetDeviceCaps but I would like
to use the framework and no call to Win32 API using platform invoke.
Anyone has an idea ?
Thanks
Laurent