I have a System.Windows.Forms.Form
window, that needs to get events delivered to it with Control.Invoke()
. However, the messages are not getting delivered prior to calling Show()
on the form.
In order to work around this, I tried this kludge in the form's constructor:
this.Show();
this.Hide();
This works, and the messages are now getting delivered. However, this results in a window flashing in and out when the form is constructed. Is there a more elegant way to achieve what I want?
I'm working with .NET 2.0 (a newer version is not allowed).