Link to home
Start Free TrialLog in
Avatar of e4monsch
e4monsch

asked on

Problems with DialogBox (ShowModel)

I have a dialogbox which is displayed by the MainForm. And in a second thread I set the ShowModel.Result to mrOk. The dialogbox should disapeare now. But it wont. I have to move the mouse cursor first befor the dialogbox disapers.

How can I get rid of this effect?
Points will be increased depending on your answer.

Regards Ian
Avatar of mirek071497
mirek071497

If you set ModalResult to mrOK the dialog box disapeare and this is ok. Can't you move cursor before setting ModalResult ? I can't understand what you need.
Avatar of e4monsch

ASKER

The problem is that the dialog box does not disapere by it self, when I set the ModalResult to mrOK. I have to move the mouse cursor (after setting mrOK) to help the dialog box to disapere.

Do you know what I mean?
ASKER CERTIFIED SOLUTION
Avatar of Dippen
Dippen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial