Prigrelha Showdialog loses Focus

Asked

Viewed 107 times

1

  • is the product or component that loses Focus?

  • is the product. When the form loads, the Focus changes to another window opened in windows.

  • 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?

  • 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.

  • 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.

  • actually stopped happening. Thanks for the help.

  • Please do not post image code

Show 2 more comments

1 answer

0

In fact it was outdated by passing the Loadgrid to the event Shown.

private void frmDemoGrid_Shown(object sender, EventArgs e)
        {
            LoadGrid();
        }

Thanks for the help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.