Fix WinForms framework bugs.