I'm trying to show a Form before an application's start and get its DialogResult
, so I'm just creating it and using ShowDialog
(because Application.Run
's return value is void).
What I'm worried about is that it might get 'hijacked' by mistake by some other Form that might be shown at the time. Not by this application, obviously. See What is the meaning of Form.Show(null)? that it's not advisable to use the parameterless overload of ShowDialog
.
I have tested and seen that the Form's Owner
property was null. But will it always be so? Or should I create a Form and use that as the Owner without showing it? That seems a strange solution but logically it should avoid any problem. Or will that introduce new ones?