0
Good morning, I’m having trouble controlling focus on windows in some situations. I need to control this well for one should always block the other.
I have a multi-window solution, I will use Windows 1,2,3 and 4 as an example.
The 2 is daughter of 1, opened with Showdialog, the 3 and 4 are daughters of 2 and are part of a Class Library I have, not being in the same project as screens 3 and 4.
I need that whenever the 3 and 4 close the focus is on Window 2, which is the one that opens them, but it is occurring that when they are closed they focus on Window 1, and strangely enough shortcut keys work, even if window 2 is opened by Showdialog(), this cannot occur.
I imagine it has some connection because windows 3 and 4 are part of another project.
I’m working with C#, Windowsforms
I’ve tried enough, I don’t know how else to proceed.
Someone of a Light?
Put the code you tried so we can help you.
– Augusto Vasques
Without the code you can’t guess, edit your question by presenting a [mcve]
– Leandro Angelo