Modeless form cannot receive keyboard input in Excel Add-in developed by Delphi
问题 Is it bug of VCL?? Non modal form cannot receive input in Excel COM Add in. But the very same code of C# works fine. Demo: https://drive.google.com/open?id=1eKermBZdgXdT7KtfJeZWxYiUwjDNRAst C# Demo: https://drive.google.com/open?id=1tdcgkbHU8cExVhHrmFsQeA5oqjlzxN3k Delphi Code: procedure TDelphiAddIn1.OnStartupComplete(var custom: PSafeArray); var LForm: TForm1; begin LForm := TForm1.Create(nil); LForm.Show; end; C# Code: public void OnStartupComplete(ref System.Array custom) { new Form1()