lucksjb Posted March 6, 2013 Share Posted March 6, 2013 Hi guys, when I run a showmodal in a form, the first edit don´t focused. how can I solve this ? tnx advanced Luciano *** I´m attached the sample with error. erro modal.rar Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 6, 2013 Administrators Share Posted March 6, 2013 ActiveControl --> UniEdit1 Quote Link to comment Share on other sites More sharing options...
lucksjb Posted March 6, 2013 Author Share Posted March 6, 2013 tnx Farshad, with uniform1.activecontrol = uniedit1 is running tnx again Quote Link to comment Share on other sites More sharing options...
Charles Holmes Posted April 24, 2014 Share Posted April 24, 2014 Hi, I having a similar problem with a UniDBGrid1 in MainForm; when I call Second_Form.ShowModal, the focus remains in the MainForm-->UniDBGrid1 and stay there until I click in the Second_Form I tried this: procedure TSecond_Form.UniFormShow(Sender: TObject); begin inherited; ActiveControl := Other_UniDBGrid; end; Thanks Charles Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.