protected override void OnShown(EventArgs e)
{
base.OnShown(e);
// This dialog may be created when no other forms are active. Calling Activate will
// make sure that the dialog comes up visible and activated.
Activate();
if (MiscUtils.IsUnix)
ReLayoutCorrectly();
}