/Home /Archive /Syndicate /Blog /Support /About /Contact  
All Visual Basic Feeds in one place!





  The question of what Windows Workflow Foundation version 4 means for developers currently developing using WF recently came up. As I mentioned before WF 4 is a complete rewrite and doesn’t use any of the existing WF 3 classes. The design of WF 4 is even quite different from the design of WF 3.   So are WF 3 developers completely left in the dark and have to start from scratch? And what about their existing applications, will they still run on .NET 4 or are they stuck in .N ... [ read more ]
You have probably heard that the next version of VB will no longer require line continuation characters in most situations. This is very good news for those of us that do not like typing underscore characters. But in the mean time, what do we do if we have a long string, like a SQL string: Dim mySelect As String = "Select CustomerId, " & _                        ... [ read more ]
Looping through a list to append strings is often more challenging than it should be. For example… In C#: string emailAddresses=string.Empty; foreach (Customer c in custList) {     emailAddresses += c.EmailAddress + ";"; } In VB: Dim emailAddresses As String = String.Empty For Each c As Customer In custList     emailAddresses &= c.EmailAddress & ";" Next Both of these examples po ... [ read more ]
At the MVP Summit this year, Beth Massi interviewed me for the “I’m a VB” series . Alan Cooper introduced me to VB back around 1992 (VB 2.0), so it was fun to talk about my favorite things in VB. Any thoughts on the interview? I’d love to hear them!... [For the complete article see the Orignal Post link below] ...
Defining a list of integers in your code involves lots of tedious typing. In VB, you can’t do this: 'Dim numberList As new List(Of Integer) = {1, 2, 3, 4, 5, 6, 7, 8, 9} So you have to either add numbers to the list manually, or create an array, which still involves lots of tedious typing: Dim numberList() As Integer = {1, 2, 3, 4, 5, 6, 7, 8, 9} With .NET 3.5, you can instead use the Range method of the Enumerable class that is part of the System.Linq namespace. In ... [ read more ]
There may be situations when you want to display a form by its form name. For example, say that you retain your menu options in a database so they can be customized. You want to associated a menu option with the display of a particular form. So you store the form name in the table. But then you need a way to show that form at runtime. For this, you need reflection. In VB: Dim formName as string = "CustomerForm" Dim assemblyName As String = My.Application.Info.AssemblyNam ... [ read more ]
She finally buckled. How many of us learned about Object Oriented Programming and oh so much more from Deborah? (Raising my hand) Deborah's Developer MindScape Subscribed... [For the complete article see the Orignal Post link below] ...
I ran across the OfType feature a few months ago and find it to be very useful. OfType is one of the many extension methods on IEnumerable that was provided with .NET 3.5. If you ever need to search through a list for a particular type of object, then this feature is for you. The most common scenario for this feature is in working with the user interface. Say you want to hook up a particular event handler to every Button on your form. Or you want to go through your form and clear every TextBo ... [ read more ]
I can't believe I put up with this problem for so long. It was an easy solution, just not an obvious one. Read more...  ... [For the complete article see the Orignal Post link below] ...
Often times applications require lists of things: lists of customers, lists of experiments, lists of accounts and so on. The generic lists provided in .NET 2.0 made working with these lists easy. And the list initializers in C# and the object initializers in VB make lists easier still. As an example, here is a first draft of a simple Customer class. In C#:   public class Customer {     public int CustomerId { get; set; }     pub ... [ read more ]
Starting Point In my earlier post, the HiliteTextBox , I created a simple WPF UserControl which is hosted in an ElementHost in a Windows Form. If the user tries to continue without entering text in the TextBox, a bright colored Border would appear around it and stay there until the user does enter something.    If we are going to go to the trouble of harnessing WPF's graphics power, we may as well go a step further and add some animation to the control. One simple thing ... [ read more ]
I guess Robin and I inspired her on Monday when we had dinner together. Yes folks, Deborah Kurata (VB MVP) is finally spilling her technical heart out on her new blog ! Time to update your RSS readers…. Deborah's Developer MindScape Neat-o title too. Enjoy!
One of my favorite features in VB 9 (Visual Studio 2008) is XML Literals. This example demonstrates how insanely easy it is to build an XML file using VB. This code builds xml from a list of customers. Dim customerXml As XElement = _ <customers>    <%= From c In custList _        Select <customer>                  <LastName&g ... [ read more ]
One of my favorite features in .NET 3.5 is lambda expressions. This example demonstrates how to use lambda expressions: To compare items in two lists and find which items in one list are not in the other. For example: {1, 2, 3}, {2, 3, 4}. {1} is only in the first list. To display the contents of the resulting set. First, define two lists: List<int> list1 = new List<int>() { 1, 6, 8 }; List<int> list2 = new List<int>() { 2, 6 }; The follo ... [ read more ]


© 2005 Serge Baranovsky. All rights reserved.
All feed content is property of original publisher. Designated trademarks and brands are the property of their respective owners.

This site is maintained by SubMain(), a division of vbCity.com, LLC