Set box view owner

shifting focus to another app and back will cause the parent form to be
brought back to the top as well
This commit is contained in:
Kurt 2018-01-22 22:39:12 -08:00
parent d65393c6f6
commit 18421c66a9
2 changed files with 2 additions and 0 deletions

View file

@ -22,6 +22,7 @@ namespace PKHeX.WinForms
AllowDrop = true;
AddEvents();
CenterToParent();
Owner = p.ParentForm;
FormClosing += (sender, e) =>
{
foreach (var b in Boxes)

View file

@ -22,6 +22,7 @@ namespace PKHeX.WinForms
Cursor = DefaultCursor;
System.Media.SystemSounds.Asterisk.Play();
};
Owner = p.ParentForm;
foreach (PictureBox pb in Box.SlotPictureBoxes)
pb.ContextMenuStrip = parent.SlotPictureBoxes[0].ContextMenuStrip;