Lab 1 - missing the GPSView? I found out why...

Topics: CAB & Smart Client Software Factory
Aug 31, 2005 at 9:54 AM
originally posted by: ChrisHolmes

Maybe this post will save someone else some time :)

After following lab 1, cutting and pasting and familiarizing myself with the guts of the project, I compiled and ran to find a mostly blank form with the words:

"Below, is a deck workspace with a GPSView hosted inside it."

Only, the deck workspace and the GPSView were not there. Fortunately the lab comes with an 'end' version as well. I dug through the source code to find that MainForm's InitializeComponent() looks slightly different. The 'begin' project has this code:

this.MainWorkSpace.Location = new System.Drawing.Point(0, 0);
this.MainWorkSpace.Name = "MainWorkSpace";
this.MainWorkSpace.Size = new System.Drawing.Size(0, 0);
this.MainWorkSpace.TabIndex = 2;
this.MainWorkSpace.Click += new System.EventHandler(this.MainWorkSpace_Click);

Notice the MainWorkSpace.Size is 0,0. A little small to see maybe, eh? In the 'end' version, the values are 578,142, but that is not noted in the Lab instructions. Guess that's what we get for letting a lab hold our hands eh?

Hope this saves someone a little confusion :)