<html><head></head><body style="zoom: 0%;"><div dir="auto">Did you call the form with Form2.ShowModal?<br><br><br><br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Ottieni <a href="https://bluemail.me">BlueMail per Android<!-- tmjah_g_1299e --></a></div>
<div class="gmail_quote" >Il giorno 11 Feb 2023, alle ore 23:26, Bart via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a>> ha scritto:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">On Sat, Feb 11, 2023 at 9:26 PM gabor via lazarus<br><lazarus@lists.lazarus-ide.org> wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Have you set the TBitButton.ModalResult property or TBitButton.Kind<br> property appropriately?<br></blockquote><br>This would normally also set ModalResult to mrOk (Kind := bkOK) or<br>mrCancle (Kind := bkCancel).<br>Setting the modalresult to those values should be enough (no OnClick<br>needed) to close the modal form.<br>It definitively does so for me.<br></pre></blockquote></div></body></html>