The .NET/Link distribution includes a SimpleLink sample program that demonstrates simple techniques for launching Mathematica and performing computations. The code is available in both C# and Visual Basic .NET.