Form’s controls not being drawn on Show(), but are drawn on ShowDialog()

I have a form that should be displayed inside a click event of a control on another form. When I call MyForm.Show(), the frame of the new form is displayed, but none of its controls are. But when I use MyForm.ShowDialog(), the controls appear as expected. The only suggestion a Google search gave me was to make sure InitializeComponent() was being called, and it is. Do you have any other suggestions?

It's late, and I'm heading home. I'll try constructing a minimal example tomorrow.

Thanks for your help.

by CedricCicada via /r/csharp

Leave a Reply