You just have to keep making your extra changes in OnInit, i.e. just before orafter InitializeComponent().Same in WindowsForms.