Solved

Problems with DialogBox (ShowModel)

Posted on 1997-10-03
3
217 Views
Last Modified: 2010-04-04
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
0
Comment
Question by:e4monsch
3 Comments
 
LVL 3

Expert Comment

by:mirek071497
ID: 1346796
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.
0
 
LVL 2

Author Comment

by:e4monsch
ID: 1346797
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?
0
 

Accepted Solution

by:
Dippen earned 30 total points
ID: 1346798
Hi!

I haven't been able to reconstruct your problem, but you could try to update the form in question:

  ModalResult := mrOK;
  Modalform.Update;    <--- The form that won't disappear

  or try to update the Mainform:

  Mainform.Update;

As I said, I haven't been able to reconstruct your problem, so my theory is not actually tested.

//Dippen


0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Working this component WebCopy with proxy, help 3 92
Printing problem 2 102
How to convert memory stream to PDF file 6 125
Breakpoint doesn't stop in my variable 3 30
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question