Problem with focus of windows

Asked

Viewed 30 times

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?

  • 1

    Put the code you tried so we can help you.

  • Without the code you can’t guess, edit your question by presenting a [mcve]

1 answer

0

The screens are manipulated of some 15 different points, of different mateiras, I only asked even why someone could have some idea.

But thanks, I’ll close the thread.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.