1

Topic: How on MessageBox to deliver focus if it in adjacent process a window?

1 Causes other process with a card.
Accordingly at  dialogue focus happens on a card.
How to move focus on dialogue if transmission Window owner does not help?

2

Re: How on MessageBox to deliver focus if it in adjacent process a window?

Window. Activate?

3

Re: How on MessageBox to deliver focus if it in adjacent process a window?

Shocker. Pro wrote:

Window. Activate?

Did not help.
On transferred Window w
w. Focus ();
Swears that cannot.
If in a debugger to rise  that focus is.

4

Re: How on MessageBox to deliver focus if it in adjacent process a window?

Petro123 wrote:

If in a debugger to rise  that focus is.

likely such way:
2-> Studio-> Prilozh1

5

Re: How on MessageBox to deliver focus if it in adjacent process a window?

Do not mix concept of focus and the active application

6

Re: How on MessageBox to deliver focus if it in adjacent process a window?

Shocker. Pro wrote:

do not mix concept of focus and the active application

Apprx.
But the real purpose is focus on the button APPRX.

7

Re: How on MessageBox to deliver focus if it in adjacent process a window?

If to give parameter owner, an error:
It is impossible to display service MessageBox with set ower.

8

Re: How on MessageBox to deliver focus if it in adjacent process a window?

Shocker. Pro wrote:

Window. Activate?

IsActive gives true initially.

9

Re: How on MessageBox to deliver focus if it in adjacent process a window?

If at you application inactively and  opens on a background.
If application to make active focus rises there automatically
The second variant - not to use , and to make the window which will be  or even topmost if it is necessary
The third variant - to use  for window activation  or even it topmost - but I would not began to potter with it

10

Re: How on MessageBox to deliver focus if it in adjacent process a window?

Petro123 wrote:

If to give parameter owner, an error:
It is impossible to display service MessageBox with set ower.

That for owner - you try to use MesageBox from Winforms?

11

Re: How on MessageBox to deliver focus if it in adjacent process a window?

Shocker. Pro wrote:

it is passed...
What for owner - you try to use MesageBox from Winforms?

The project is inherited.
There costs #if defined wpf.....
System. Windows. MessageBox (...
?

12

Re: How on MessageBox to deliver focus if it in adjacent process a window?

More shortly, a test project give. On an example of start of a notepad.

13

Re: How on MessageBox to deliver focus if it in adjacent process a window?

At not wpf the link on .forms.
I.e. like all apprx.
Flow like the main.
Simply the code came in Pril2 and there before window closing returned in 1.
And focus still there.

14

Re: How on MessageBox to deliver focus if it in adjacent process a window?

Shocker. Pro;

Shocker. Pro wrote:

is shorter, a test project give. On an example of start of a notepad.

Apprx. But on days off. It long.
Other process etc.

15

Re: How on MessageBox to deliver focus if it in adjacent process a window?

We take )