Does anyone know how to programmatically move my SDL.net video surface across the screen?
Surface videoContext = Video.SetVideoMode(1024, 768, 32, false, false, false, true, true);
var a = System.Windows.Forms.Control.FromHandle(Video.WindowHandle);
var b = System.Windows.Forms.NativeWindow.FromHandle(Video.WindowHandle);
I cannot find any properties in Surfaceor Videothat do the job, and FromHandlereturns Null.
The initialization window drops from the bottom of the screen. 
Any ideas?
Update:
I saw this code, but I can’t work out an equivalent C # implication. Can anybody help?
#ifdef WIN32
#include <SDL_syswm.h>
SDL_SysWMinfo i;
SDL_VERSION( &i.version );
if ( SDL_GetWMInfo ( &i) ) {
HWND hwnd = i.window;
SetWindowPos( hwnd, HWND_TOP, x, y, width, height, flags );
}
Otherwise, how much work does it take to incorporate some c ++ into my C # project?
Thank you
source
share