https://dynamicsgpland.blogspot.com/2018/06/opening-dynamics-gp-windows-using-net.html
This is just brilliant. Every word of it, start to finish.
You'd do well to follow Steve Endow's blogs.