Very rarely, but it does happen, that developers are faced with a very strange behaviour where their winForm application automatically changes it size on start up when DicomObjects.NET version 8 is loaded. Using earlier versions will not give the same behaviour.
This scaling issue is caused by PresentationCore.dll (which is referneced by DicomObjects.NET v8 for 3D related data structures) which makes a call to SetProcessDPIAware when it is loaded. This changes the application’s DPIAwareness after a form’s initialization is started.
There are several ways to disable the application’s DPI Awareness. But the easiest would be to add the following line in your application’s AssemblyInfo file
Note, reference to WindowsBase is required in your project to make this work.