WinForms window changes dimensions when it encounters an async call
问题 I have a WinForms project which is several years old and has been retro-fitted with async event-handlers: private async void dgvNewOrders_CellClick(object sender, DataGridViewCellEventArgs e) Inside this method is an async call: var projectTemplate = await GetProjectTemplateFile(companyId, sourceLang, targetLang); When the program runs on a normal resolution screen, it runs as expected. However, when run on a high-DPI screen the window's dimensions - as well as those of all child controls -