public Form1() { ... IntPntr hFocus = GetFocus(); _ParentHwnd = hFocus; } protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.Parent = _ParentHwnd; return cp; } }In NAV:
Create(gird); grid.show;All likes good, but after loading dll in first time, after few seconds, i can`t change data value in my grid, controls works fine.
Comments
Didn't think you could show a windows form from a COM component in NAV...
But before, i changed form to create it in NAV form, like a parent container.
http://msdn.microsoft.com/en-us/library/ee909565.aspx
i can`t change anything after selecting textbox or checkbox.