Jump to content

about focus in a modal form


lucksjb
 Share

Recommended Posts

  • 1 year later...
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...