AdvSmartMessageBox

Hi,

I want to use the AdvSmartMessageBox component to display a simple message

Could you confirm me that I use the good syntax :

With AdvSmartMessageBox1.Messages.Add 
do
begin
Text := '<P align="center">Example message</P>';
Show;
end;

Regards

I retested this here and could not see any issue.
What exact problem do you experience? And if there is a problem: Delphi version, component version, Windows version?

hi,

Delphi XE5 on windows10 with your last version

Sometimes I have an error when I leave the Form where the AdvSmartMessageBox was called.

But I am not sure it comes from your component
I am doing more investigation to find out what the problem is.

Regards

hi,

I have moved forward on that issue:

I have the problem only when the delphi Form is a non modal Form.
If it is a modal Form, no problem when I close it.

Probably, the way I close a non modal Form is not good.

I will go further and find out what is the problem ?
Maybe some code like AdvSmartMessageBox.Messages.Free will be enough ?

Regards

If you could isolate this and send a sample source app + steps with which we can reproduce this, that would help understanding the problem and try to find a solution.