• Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Smarter WinForms multithreading

Sign in to follow this  


Among the .NET set, Windows Forms comprise the fundamental building blocks for a snazzy application. As far as game development goes, they're excellent for prototyping or tools (and if you're using managed DirectX, you almost certainly paint to a Form surface). Graham Wihlidal uses them extensively for his upcoming publication (the name of which escapes me at the moment), which gets you knee-deep in tools development for games -- level editors, environment builders, world creators, that sort of thing.

Unfortunately, if you do any kind of multithreaded processing, you've probably been tempted to use DoEvents more than once; more so if you've previously used or are currently using Visual Basic.NET. While not intrinsically a bad idea, it's indicative of bad design. But worry not! There are smarter alternatives, as we outline here.

Also, if you're looking for a replacement that solves about 90% of your DoEvents problems, here's one good way to solve your woes. Best of all, it's drag and drop, so you can use it straight from the designer.

-- k2
Sign in to follow this  

1 Comment

Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement