C
Christer
Hi all,
An application I am woking on consist of a main form. On the main form
there are several possible ways for the user to open a non-modal child
forms to display even more information.
The problem I am encountering is about loss of focus. Let's say here,
that initialization of the child form takes about ½ second, from the
point where the window is first shown to the point where all controls
have been rendered and set with data.
Now, on the main form there is a datagridview which is updated on
intervals.
The problem occurs the user clicks a button to open a child form. The
child form is created. But before initialization of the child form has
finished, the DataGridView on the main form is updated. Seemingly
because of this, the main form gets focus and is moved to the front,
and the child form is moved to the back. The user can manually put
focus on the child form again and continue working, but tuhis is a
behaviour that is very anoying to the end users.
Have any of you encountered something like this before?
The non-modal strategy is by design. The users want to be able to go
back to the main form, without closing the child form. Therefore, I'm
searching primarily for any help on the focus problem, and will only
use a modal child form strategy if no resolution to the problem can be
found.
Thanks in advance,
Christer
An application I am woking on consist of a main form. On the main form
there are several possible ways for the user to open a non-modal child
forms to display even more information.
The problem I am encountering is about loss of focus. Let's say here,
that initialization of the child form takes about ½ second, from the
point where the window is first shown to the point where all controls
have been rendered and set with data.
Now, on the main form there is a datagridview which is updated on
intervals.
The problem occurs the user clicks a button to open a child form. The
child form is created. But before initialization of the child form has
finished, the DataGridView on the main form is updated. Seemingly
because of this, the main form gets focus and is moved to the front,
and the child form is moved to the back. The user can manually put
focus on the child form again and continue working, but tuhis is a
behaviour that is very anoying to the end users.
Have any of you encountered something like this before?
The non-modal strategy is by design. The users want to be able to go
back to the main form, without closing the child form. Therefore, I'm
searching primarily for any help on the focus problem, and will only
use a modal child form strategy if no resolution to the problem can be
found.
Thanks in advance,
Christer