
I am working on using a native windows API inside GP AddIns (c#). GP windows crashes once I move GP window. Any one has experience to address this issue?
[DllImport("user32.dll", EntryPoint = "SetWindowLong")]
private static extern int SetWindowLong32(HandleRef hWnd, int nIndex, int dwNewLong);
*This post is locked for comments
I have the same question (0)I do not think the dexterity wrapper likes you forcing things onto the forms using the Win API. If you must do this, try using "SetWindowLongPtr." If my memory serves me, this method replaced the SetWindowLong for 64-bit systems, and you can also still use this for 32-bit applications too.