My app has a custom panel used to display the XNA screen within a WinForm. I\'ve currently displayed a test model with no problem and now working on camera movement. My came
In order to use XNA's mouse API (rather than WinForm events) you must set Mouse.WindowHandle
appropriately (MSDN).
If you are using the official samples, then putting this in your MainForm
's constructor will do the trick:
Mouse.WindowHandle = this.Handle;
(Of course using Microsoft.Xna.Framework.Input;
)