1
When using the prigrate in a user form with Showdialog spring loses Focus. I tested with the code available here: https://github.com/PrimaverabssDeveloper/ERP10Extensibility/tree/master/Primavera%20SDK
I changed the maincustomcodeclass.Cs code:
and frmDemoGrid.Cs:
Has anyone ever had the same problem? Am I doing something wrong? Thank you.
is the product or component that loses Focus?
– Sérgio Sereno
is the product. When the form loads, the Focus changes to another window opened in windows.
– Bruno Silva
What happens here is that when Showdialog is made the form is outside the ERP shell, however, by the test I did, you are not losing Focus. You are invoking the form from a user menu?
– Daniel Vieira
In the example I presented I am invoking from a shortcut in Ribbon. In the real case where I have the problem the form is being invoked from the Manufacturing Order Editor.
– Bruno Silva
The problem is even where Loadgrid is placed, try passing it to the Shown event of the form, it will no longer happen, the grid will be loaded immediately after the form is shown.
– Daniel Vieira
actually stopped happening. Thanks for the help.
– Bruno Silva
Please do not post image code
– danieltakeshi