Print Page | Close Window

Help for VB programmers

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2262
Printed Date: 16-Apr-2025 at 8:18am


Topic: Help for VB programmers
Posted By: donc
Subject: Help for VB programmers
Date Posted: 26-Oct-2010 at 8:31am
Alot of us tend to learn things by looking at working examples.  Unfortunately, there seems to be a dearth of sample apps and examples available for those of us old dogs who prefer to work in VB instead of C# with Silverlight. 
 
We would love to see all of your documentation and sample code include both VB and C#. 
 
It is especially frustrating when you see something like your new CoRoutines which look very cool, but don't seem to be directly translatable to VB because they use some language features which are only available in C#.
 
It would be great to have some best practices VB examples of DevForce integrating:
    -  Mvvm - MvvmLight and/or Prism 4
    -  Coroutines
    -  Repositories
    -  Unity
    -  Ability to work both Connected and Disconnected from a backend database
    -  and whatever else might be relevant to creating a modern DevForce Silverlight business oriented application.
 
Thanks for listening and I'd appreciate any feedback you've got to share!



Replies:
Posted By: ting
Date Posted: 27-Oct-2010 at 2:33pm
Hi donc,

Thanks for taking the time to give us feedback.

Most of the html documentation should show both VB and C#, and we're updating the remaining sections to show both as well.  As you noticed, we have a definite lack of samples and sample applications in any language.  So, our priority is to get additional samples coverage as quickly as possible, which means they will likely be in one language (and probably C# since that's the language our samples authors know best).  Once we get sufficient samples coverage, we would like to make them available in both languages.

Coroutines for VB is... unfortunate.  I love the feature, but we don't have a solution for the VB folks yet.  Maybe we can give you guys something that the C# folks can't use ;)




Posted By: kimj
Date Posted: 28-Oct-2010 at 5:45pm
It's not entirely true that the Coroutine doesn't work in VB, it's just not as easy and intuitive as in C#.  We just converted the new Business Application templates to VB, and these templates use Coroutines for both user login and registration.   These templates will be available in the 6.0.7 release, but I can post the relevant code if you're interested now.


Posted By: donc
Date Posted: 01-Nov-2010 at 8:09am
Any sample code would be helpful!
 
I noticed today that Microsoft has released a new Visual Studio Async CTP at  http://msdn.microsoft.com/en-us/vstudio/async.aspx - http://msdn.microsoft.com/en-us/vstudio/async.aspx  ... it looks like we might get some new constructs in VB after all!
 
Thanks for your feedback.


Posted By: kimj
Date Posted: 01-Nov-2010 at 11:49am
Here's a sample.  The new iterator and yield support for VB in the Async CTP make the workaround shown in the sample unnecessary, so if you can use the CTP, go for it! 
 
http://www.ideablade.com/forum/uploads/11/VB_Coroutine_Helpers.zip - uploads/11/VB_Coroutine_Helpers.zip
 



Print Page | Close Window