<p>Hi i want to write a game with a main game form and lot of other normal forms. What is the best way to manage update-paint cycle in that case?</p>

<p>Should the game form paint loop only should be overriden? or should i do an application.do events() in the main method?</p>

<p>Please guide me regarding this. i am new to windows forms world</p>

[{'answer_id': 74454, 'author': 'GEOCHET', 'author_id': 5640, 'author_profile': 'https://Stackoverflow.com/users/5640', 'pm_score': 1, 'selected': False, 'text': '<p>If you are making a game, you should be looking into <a href="http://msdn.microsoft.com/en-us/magazine/cc164112.aspx" rel="nofollow noreferrer">DirectX</a>, <a href="http://csgl.sourceforge.net/" rel="nofollow noreferrer">OpenGL</a>, or <a href="http://xna101.spaces.live.com/" rel="nofollow noreferrer">XNA</a>.</p>\n'}, {'answer_id': 74487, 'author': 'Michael Meadows', 'author_id': 7643, 'author_profile': 'https://Stackoverflow.com/users/7643', 'pm_score': 2, 'selected': True, 'text': '<p>Your logic thread should be separate from the form, so you won\'t need DoEvents().  If you\'re using GDI+, then you should force an Update() on a loop.  Windows Forms doesn\'t do double buffering very well, so depending on how sophisticated your graphics will be you might have some difficulties with flicker.</p>\n\n<p>My suggestion is to look at using the <a href="http://msdn.microsoft.com/en-us/library/bb318659(VS.85).aspx" rel="nofollow noreferrer">DirectX managed library</a>.  It\'s a lot to learn, but gives you everything you need.</p>\n\n<p><strong>EDIT:</strong>\nI have been reading recently about WPF, which seems like a much better platform for simple to moderately complex games, because it provides a much higher level API than the <a href="http://msdn.microsoft.com/en-us/library/bb318659(VS.85).aspx" rel="nofollow noreferrer">DirectX managed Library</a>.  It probably has performance and flexibility limitations for more complex games, however.</p>\n'}, {'answer_id': 74500, 'author': 'Karg', 'author_id': 12685, 'author_profile': 'https://Stackoverflow.com/users/12685', 'pm_score': 2, 'selected': False, 'text': '<p>The body of the question doesn\'t mention Compact Framework, just Winforms. This is pretty much the accepted answer for Winforms from Tom Miller (Xna Game Studio and Managed DirectX guy from Microsoft):</p>\n\n<p><a href="http://blogs.msdn.com/tmiller/archive/2005/05/05/415008.aspx" rel="nofollow noreferrer">Winforms Game Loop</a></p>\n\n<p>@Rich B: The game loop is independent of how the rendering is done (DirectX, MDX, GDI+)</p>\n'}]
['https://Stackoverflow.com/questions/74422', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13046/']