Click to See Complete Forum and Search --> : Focus - i am sure this is an easy problem?


EAK
October 9th, 2001, 01:39 PM
Hi All!

1) i have an sdi app
2) i have a "main" form
3) i have a second form displayed (vbmodal)
4) in the 2nd form i use msgbox to prompt the user

PROB: when the message box appears, the 1st form becomes visible (2nd is no longer visible)

i have tried to corner the problem in the lost/gotfocus and/or (de)activate events to no avail.

it appears as if the msgbox considers the 1st form as its owner.

Regardless, i am at a loss as to how to fix this problem?

can anyone help? this appears to be a very basic and simple, something i shouldn't be missing...

all help is appreciated!

Thank you

HanneSThEGreaT
October 9th, 2001, 04:07 PM
You can send me the program, maybe I could help¿

Hannes
hannesthegreat@mighty.co.za

F. T. W.

EAK
October 9th, 2001, 04:33 PM
i wish i could simply drop the app to you but, it is far too large.

i am not sure why it always seems like the answer shows up as soon as i post the question. as i was trying to find appropriate code to send to you, i found a line that failed to set the style as vbmodal. as soon as i forced the style to vbmodal, the problem went away.

i was hoping it would be so simple and obvious. just wish i had seen it before posting.

thank you (for getting me to look:))

HanneSThEGreaT
October 9th, 2001, 05:10 PM
I'm glad you got right!
Hannes

F. T. W.