The mouse should be locked inside the window already. At least it is for me. If it's not working properly for you, it's probably some kind of .NET Framework issue that I can't really do much about, sorry.if at all possible and if not done already, would it be possible to make it so that when in 3d mode the mouse can't affect anything outside of the mode's window frame?