Sample XNA cursor not showing when ran as exe

Topics: Developer Forum
Jul 19, 2011 at 6:29 PM

If I run the exe thats created from VS 2010 then the game samples run fine but my cursor stops showing up, am I missing some flag to set for building?  If I click run from the IDE everything works.

Jul 19, 2011 at 6:35 PM

Change

HasCursor = false;

to 

HasCursor = true;

Jul 19, 2011 at 6:40 PM

got it, actually it was an odd thing with the fact I have dual monitors.  The ide must lock to one monitor but the exe doesn't know to do this so if my cursor was on the second monitor, it would show up in the game window that was running on the first.  I will leave this thread up in case anyone else hits this snag.