응용 프로그램이 실행 중일 때 작동하는 Windows 응용 프로그램이 있지만 디자인보기에서 OnLoad 이벤트의 코드가 여러 가지 이유로 인해 충돌합니다..NET 디자인보기에서 Windows Forms OnLoad를 실행하지 않습니다.
private void WindowsForm_OnLoad(object sender, EventArgs e)
{
if (IsDesignView())
{
// some code that breaks in design view but works normally
}