Accessing the underlying WinForm of a WinDX project

Hi there,

In order to add some features to our game tools, I am trying to access the underlying Form of a Windows project. To do so, I tried to create a Form from the Game.Window.Handle, but I’m getting an “access violation” anytime I try to access this IntPtr. Unsafe/admin doesn’t change anything.

Is there a better way to access the Form or its handle? Is the access violation normal?


EDIT: for some reason, I don’t get the error anymore today. :-S Hence, everything works fine.