I'm using lazarus 0.9.26.the "bug" occurs only when my project is compiled with GTK2.it's much better (though not perfect) with GTK1.<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">
<br>
</div>Untested: Try to make the old *form* Active, because only the active<br>
form (or a component on it) can receive the focus. If this helps, it's<br>
worth further investigations WRT platform compatibility.<br></blockquote></div>i've tried this ,but it didn't work.maybe i used it wrongly?<br clear="all"><br>-- <br>I'm sure that I will win.<br>