Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
GeneralRe: binding the data to the grid Pin
That's Aragon5-Feb-08 17:59
That's Aragon5-Feb-08 17:59 
GeneralRe: binding the data to the grid Pin
chithra.r5-Feb-08 18:10
chithra.r5-Feb-08 18:10 
GeneralRe: binding the data to the grid Pin
That's Aragon5-Feb-08 18:29
That's Aragon5-Feb-08 18:29 
GeneralRe: binding the data to the grid Pin
chithra.r5-Feb-08 21:33
chithra.r5-Feb-08 21:33 
GeneralRe: binding the data to the grid Pin
chithra.r5-Feb-08 21:35
chithra.r5-Feb-08 21:35 
GeneralRe: binding the data to the grid Pin
That's Aragon5-Feb-08 22:05
That's Aragon5-Feb-08 22:05 
GeneralDeploying my C# control internationally : Sattelite Assembly Support Pin
Nadia Monalisa5-Feb-08 16:46
Nadia Monalisa5-Feb-08 16:46 
GeneralExit In XNA Pin
MasterSharp5-Feb-08 14:46
MasterSharp5-Feb-08 14:46 
I have an input class in my XNA game, and I call a method from that class to the main class, to exit the game.

(Basically)
class Game1 : XNA.blah,blah,blah<br />
{<br />
<br />
     Input input;<br />
     //etc<br />
<br />
     void Initialize()<br />
     {<br />
         input = new Input();<br />
     }<br />
<br />
     void Update(GameTime gameTime)<br />
     {<br />
         input.CheckInput();<br />
     }<br />
}<br />
<br />
public class Input : Game1<br />
{<br />
    public void CheckInput()<br />
    {<br />
         if (Keyboard.GetState().IsKeyDown(Keys.Escape))<br />
         {<br />
             this.Exit();<br />
             //or should it be Game1.Exit()? but that doesn't exit<br />
         }<br />
    }<br />
}


*there's more code, but that's not the issue; regualr stuff it starts with

So, how would I make the game exit from a different class? Thanks.

- I love D-flat!

GeneralRe: Exit In XNA Pin
Ennis Ray Lynch, Jr.5-Feb-08 17:13
Ennis Ray Lynch, Jr.5-Feb-08 17:13 
GeneralCreating a structure that returns a value for sizeof() Pin
Skippums5-Feb-08 12:32
Skippums5-Feb-08 12:32 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
PIEBALDconsult5-Feb-08 13:32
mvePIEBALDconsult5-Feb-08 13:32 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Skippums5-Feb-08 13:38
Skippums5-Feb-08 13:38 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Mark Churchill5-Feb-08 14:28
Mark Churchill5-Feb-08 14:28 
QuestionRe: Creating a structure that returns a value for sizeof() Pin
Skippums6-Feb-08 4:55
Skippums6-Feb-08 4:55 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
PIEBALDconsult6-Feb-08 13:06
mvePIEBALDconsult6-Feb-08 13:06 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Skippums6-Feb-08 13:36
Skippums6-Feb-08 13:36 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Mark Churchill6-Feb-08 15:16
Mark Churchill6-Feb-08 15:16 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
PIEBALDconsult5-Feb-08 14:28
mvePIEBALDconsult5-Feb-08 14:28 
GeneralRe: Creating a structure that returns a value for sizeof() Pin
Skippums6-Feb-08 4:59
Skippums6-Feb-08 4:59 
GeneralI need help how to start this program. Pin
Alex5015-Feb-08 11:27
Alex5015-Feb-08 11:27 
GeneralRe: I need help how to start this program. Pin
Gareth H5-Feb-08 11:59
Gareth H5-Feb-08 11:59 
GeneralRe: I need help how to start this program. Pin
led mike5-Feb-08 12:07
led mike5-Feb-08 12:07 
GeneralRe: I need help how to start this program. Pin
Malcolm Smart5-Feb-08 21:05
Malcolm Smart5-Feb-08 21:05 
GeneralRe: I need help how to start this program. Pin
J4amieC5-Feb-08 22:37
J4amieC5-Feb-08 22:37 
GeneralRe: I need help how to start this program. Pin
Wes Aday6-Feb-08 4:18
professionalWes Aday6-Feb-08 4:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.