Jump to content

about focus in a modal form


lucksjb

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...