Ok found the problem myself!
For others who may encounter it...
The above code should read:
[STAThread]
static void Main()
{
Application.Run(new frmContainer());
}
VS.NET did not automatically change the name, and the book makes no reference to having to be changed.
Hope this helps someone.
Adios.
|