Connecting a Client

With the bare minimum for the server session created, you can now do the small amount of work to get a client connected to this server. While it is technically possible to add the code for the client into the same executable as the server, in order to have a dedicated server, you will want the code separated. In order to do this, you will create an entirely new second windows forms application.

The client UI will be similar to the servers. You should have one large label covering the majority of the screen. The difference is that you should leave some room for buttons along the top of the form, since you will use these buttons to have the client perform particular actions. You also will want the clients to be able to have ...

Get Managed DirectX® 9 Kick Start: Graphics and Game Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.