Original Post
Hmm, after getting to work on my level editor that I''m writing in C#, it became apparent to me that I had no clue how to set up a ''main loop'' in the application. I know in C/C++ Win32 you can do this:
while ( true )
{
if ( PeekMessage( /* blah */ ) )
{
/* blah */
}
/* more blah */
}
And in Java when working with applets, I could just implement the run method from the Runnable interface. I''ve tried looking for an equivalent for either in C#, but haven''t had much luck. Can someone help me on how I would go about setting up a main loop in a C# windows application?