I have an old VB desktop application written prior to VS2017 that I am attempting to convert to 2019. It runs fine, except when I launch a form from within another form when the form being opened resizes to very tiny and all open forms (and any forms opened after) reduce to the new form's resolution. I can then manually resize forms and the form itself will resize but the objects within stay tiny and don't move.
If I build the application and install it on my development machine and/or client's machine, it works fine. It is only when running it within VS. I tried different settings on the Layout.autosizemode parameter, and I've run VS in DPI on and off mode. Nothing changes this behavior.
The code within the startup form to launch other forms is"
Dim frmForm as Form
frmForm = new frmRequisition
frmForm.ShowDialog()
The execution of ShowDialog causes the parent form to change resolution inappropriately. I do have a HDMI monitor attached, but I can unattach it, shut down everything, reboot and nothing helps.


