Home All Groups Group Topic Archive Search About
Author
23 Jan 2006 2:42 PM
Rulin Hong
I have a windows application which opened two windows A and B.  Set B.TopMost
property True. Set A.TopMost property False. when these two windows are
opened. B is always topmost and I still can interact A. The problem is: when
I popup a msgbox from A, sometimes the msgbox is under B. So there is no way
I click OK on the msgbox. The application becomes frozen.

Thanks in ahead

Author
24 Jan 2006 10:15 AM
Daniel Ch. Bloch
If you want that Form A does not interact, you need to set the owner of form
b to form a and showdialog of form b.


Show quoteHide quote
"Rulin Hong" wrote:

> I have a windows application which opened two windows A and B.  Set B.TopMost
> property True. Set A.TopMost property False. when these two windows are
> opened. B is always topmost and I still can interact A. The problem is: when
> I popup a msgbox from A, sometimes the msgbox is under B. So there is no way
> I click OK on the msgbox. The application becomes frozen.
>
> Thanks in ahead