mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 13:58:33 +00:00
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:
parent
d65393c6f6
commit
18421c66a9
2 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ namespace PKHeX.WinForms
|
|||
AllowDrop = true;
|
||||
AddEvents();
|
||||
CenterToParent();
|
||||
Owner = p.ParentForm;
|
||||
FormClosing += (sender, e) =>
|
||||
{
|
||||
foreach (var b in Boxes)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue