in case you haven't heard, VFP is now officially dead
as far as new releases goes… No seriously this time it really is <g> Some VFP'ers would like to see VFP continue and have started a petition
. they already have nearly 500 signatures !!
The VB LINQ samples are in the March CTP MSND documentation… just look for "LINQ samples" in the index. Copy the files to somewhere you can get to them, and remove the read-only attribute from them.
Next open the solution and let the conversion wizard run.
After it has finished open the project properties Compile tab and ensure Option Infer is ON.
Finally change the connection string for the database by opening the DLinqSamples.vb file and replacing the :
that should get the samples up and running. I also change the application to a Windows Application instead of a console one, and try turning on Option Strict and Option Explicit ;)
On my recent trip to Seattle I returned home the long way via the Olympics and NW coast USA. these are the view from some of my hotel/cabin rooms:
while playing with the latest Orcas CTP
I decided to try out the WPF editor tools, aka Cider. With VB it's not too bad, although you do have to build before switching to the code view if you want full code editing support. In C# though the experience is completely lame.
Here's a simple example. Let's say you add a button to a window and want to wire up the button's click event. In VB you build, switch to code editor view and select button1 from the drop down list and then select which ever event you want to wire up, e.g. Click and presto the code is created for you.
In C# no such luck. In C# you have to navigate to the code view via solution explorer (right click and selecting code view doesn't appear to work), then add a method with the right signature yourself with no help from the IDE, then switch back to the XAML code view and manually add the Click event method name to the XAML mark-up. What a friggin joke. If you are a C# user I feel even more sorry for you than usual <bg>
So if you are using the latest Orcas CTP
, best try using VB if you want to be productive with WPF :)