Click here to Skip to main content
15,909,091 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling the same form.. Pin
Jay Shankar4-Nov-04 21:17
Jay Shankar4-Nov-04 21:17 
GeneralRe: Calling the same form.. Pin
Stefan Troschuetz4-Nov-04 21:24
Stefan Troschuetz4-Nov-04 21:24 
GeneralRe: Calling the same form.. Pin
sreejith ss nair4-Nov-04 21:36
sreejith ss nair4-Nov-04 21:36 
GeneralC# Code works under win2000 but not XP Pin
Loug524-Nov-04 16:41
Loug524-Nov-04 16:41 
GeneralRe: C# Code works under win2000 but not XP Pin
sreejith ss nair4-Nov-04 17:06
sreejith ss nair4-Nov-04 17:06 
GeneralRe: C# Code works under win2000 but not XP Pin
Loug524-Nov-04 17:16
Loug524-Nov-04 17:16 
GeneralRe: C# Code works under win2000 but not XP Pin
Charlie Williams4-Nov-04 18:16
Charlie Williams4-Nov-04 18:16 
GeneralRe: C# Code works under win2000 but not XP Pin
cdmlb@hotmail.com4-Nov-04 18:21
cdmlb@hotmail.com4-Nov-04 18:21 
Ever hear to try/catch blocks

Ex:

public void Example()
{
        try
        {
                //Your Executable code here
        }
        catch(Exceptopn){}  //Catches all Excetions
        catch(Excetion e)   //Catches all Exceptions also
        {
                //What do you want to do when an excetion has happend
                Console.WriteLine(e.ToString()); //Helps to Debug and find
                                                 //the specific Excetion
        }
        /*
        finaly
        {
                //Code that will always Execute even with Excetion or not
                //The finaly block is optional and is not needed
        }
        */
}



One part of my progs

<br />
#region Constructor<br />
private Game(Control cTarget)<br />
{<br />
  try<br />
  {	<br />
    this.target           = cTarget;<br />
    this.target.GotFocus += new System.EventHandler(this.Restore);<br />
		<br />
    this.graphics = new GraphicsHandler(this.target);<br />
    this.sounds   = new SoundHandler(this.target);<br />
    this.keyboard = new InputHandler(this.target);<br />
<br />
    this.presentState    = new GameState();<br />
    this.previousState   = new GameState();<br />
    this.presentData     = new GameData();<br />
    this.presentDataTemp = this.presentData.DeSerialize();<br />
<br />
    this.physics = new GamePhysics();<br />
<br />
    this.InitGame();<br />
<br />
    Timer.Init();<br />
  }<br />
  catch(Exception e)<br />
  {<br />
    MessageBox.Show("ERROR WHILE INITIALIZING GAME " + e.ToString());<br />
    return;<br />
  }<br />
<br />
  this.presentState  = GameState.Initialized;<br />
  this.previousState = GameState.Initialized;<br />
<br />
  this.GameLoop();<br />
}<br />
#endregion<br />


cdmlb
GeneralRe: C# Code works under win2000 but not XP Pin
Dave Kreskowiak5-Nov-04 3:13
mveDave Kreskowiak5-Nov-04 3:13 
GeneralQuestion about C# handle Windows Messages Pin
momer4-Nov-04 16:07
momer4-Nov-04 16:07 
GeneralRe: Question about C# handle Windows Messages Pin
Alex Korchemniy5-Nov-04 14:02
Alex Korchemniy5-Nov-04 14:02 
GeneralAbout IE context Pin
Jason Xie4-Nov-04 14:53
Jason Xie4-Nov-04 14:53 
GeneralRe: About IE context Pin
Nick Parker4-Nov-04 15:06
protectorNick Parker4-Nov-04 15:06 
GeneralRe: About IE context Pin
Jason Xie4-Nov-04 15:23
Jason Xie4-Nov-04 15:23 
GeneralRe: About IE context Pin
Nick Parker4-Nov-04 16:25
protectorNick Parker4-Nov-04 16:25 
GeneralRe: About IE context Pin
Jason Xie4-Nov-04 16:32
Jason Xie4-Nov-04 16:32 
GeneralRe: About IE context Pin
Nick Parker4-Nov-04 16:54
protectorNick Parker4-Nov-04 16:54 
GeneralRe: About IE context Pin
Jason Xie4-Nov-04 17:01
Jason Xie4-Nov-04 17:01 
GeneralRe: About IE context Pin
IronSnake5-Nov-04 9:36
IronSnake5-Nov-04 9:36 
GeneralRe: About IE context Pin
Jason Xie5-Nov-04 13:42
Jason Xie5-Nov-04 13:42 
Generalstring methods Pin
John L. DeVito4-Nov-04 14:02
professionalJohn L. DeVito4-Nov-04 14:02 
GeneralRe: string methods Pin
Christian Graus4-Nov-04 14:18
protectorChristian Graus4-Nov-04 14:18 
GeneralRe: string methods Pin
Nick Parker4-Nov-04 15:11
protectorNick Parker4-Nov-04 15:11 
GeneralRe: string methods Pin
Grimolfr5-Nov-04 10:08
Grimolfr5-Nov-04 10:08 
Generalproblem in debugging,when theres DLLs Pin
gijoebijoe4-Nov-04 12:18
gijoebijoe4-Nov-04 12: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.