Browse by Tags

All Tags » vb (RSS)

Creating an IE plug-in

I was recently approached by a customer about an intriguing project, unfortunately I can’t tell you too much about it since I’m under an NDA, but it involved creating an add-in for Internet Explorer and a custom Windows Service which would act as the...

Visual Studio 2010 SP1 Beta released: Great news for VB developers

Today, Thursday, December 9, Microsoft is releasing the beta version of the Visual Studio 2010 Service Pack 1 to the public, MSDN subscribers have had it for a couple of days now. It has a Go Live license, so even though it is a beta release you can use...

VB and F# support on Windows Phone 7

Have you also heard the rumor that VB and F# is not support on the new Windows Phone 7? Well, Justin Angel , a Silverlight expert, disagree and in this post on his blog he showed that you indeed can use those languages to develop WP7 applications. Check...

When OOP stinks and when you instead should leave a smell behind…

I just saw an interesting video blog post by the CTO of Devexpress entitled Pac-Man and Object-Oriented Programming , in which Julian talks about how we’ve been doing object-oriented programming for 20 years now (or even more than that if you come...
Posted by Joacim Andersson | 4 comment(s)
Filed under: , , , , ,

Microsoft is switching the light but will it turn on or off?

During the VSLive! keynote in Redmond, Microsoft yesterday announced a new Visual Studio product called LightSwitch . LightSwitch is a new SKU for Visual Studio that will allow people to create line of business (LOB) applications for the desktop and the...

Visual Studio 2010 Beta 2 released

Yesterday Microsoft had a big announcement day. At the same time as Steve Ballmer held his keynotes at the SharePoint Developers Conference (see the video ) Microsoft released Visual Studio 2010 Beta 2 for MSDN subscribers, the public release will be...

At your service (part II) – ASMX Web Service vs WCF

Introduction Last time I demonstrated how to develop a Windows Communication Foundation (WCF) service. This time we’re going to look at the differences between a ASP.Net WebService and a WCF service. The biggest difference between them is probably...

At your service (part I) – WCF tutorial in VB

Introduction In this post I’m going to do a tutorial on Windows Communication Foundation, WCF. This tutorial is divided in 4 steps: Defining the WCF data and service contracts. Implementing the WCF service contract. Creating the service-host application...
Posted by Joacim Andersson | 8 comment(s)
Filed under: , ,

Debugging a Windows Service

Introduction In my last article I showed a simple example of how to create a Windows Service using VB. This time we’re going to have a look at how to debug the service from Visual Studio. Since a service must run from the context of the Service Control...

Creating a Windows Service using VB.Net

Introduction Yesterday I got a call from my brother, or actually he sent me a message over MSN. He wanted to know if I could help him create a program with a very specific requirement. Where he works they have a system that creates a lock file when you...

Event horizon – Understanding custom events

Introduction In this article I’m going to try to explain what custom events are and why you should use them in your code. As you will see the term custom event in this context is not just an event you have created for your own class, but also a...

Run you later - Understanding deferred execution in LINQ

Introduction In this article I’m going to try to explain one of the most misunderstood features of LINQ – deferred execution - and the impact it might have on your code if you don’t fully understand what it means. What does deferred...

The Untouchables (part III) – Adding iterators to our immutable stack

Introduction In my last post I showed you a VB translation of Eric Lippert’s immutable stack class . There was however one thing that was lost in translation . In Eric’s original code he made the class enumerable (added support for a For Each...

The Untouchables (part II) – Creating an Immutable stack with VB

Introduction In this article I will shamelessly “steal” the great work originally posted by Eric Lippert on his blog . However I will translate his code into VB and try to explain it from a VB developers point of view. In my last post , I described what...

The Untouchables – Creating Immutable objects with VB

There are many articles available on the Internet about immutable objects in .Net. Unfortunately almost all of them are addressed toward C# developers. In this article I’m going to rectify that by providing some information on the subject aimed...

Make immutable objects mutable

In .Net the String object is an immutable object, which means that it’s basically constant and can’t be changed. You can’t change a string, you can only create new strings. The various methods that the String class have never directly change the string...

Go for the Generic brand…

Before .Net 2.0 the only way that you could use a generic type was to use System.Object. Although it’s been 4 years since the release of .Net 2.0 I still see developers using the System.Object way too often, which leads to unnecessary boxing/unboxing...

GetType and TypeOf confusion

Both VB and C# have an operator called TypeOf (or typeof in C#) but they perform two completely different things. In VB there are also two kind of GetType () calls, the object .GetType() method which is part of the .Net framework and the VB language specific...

Boxing and Unboxing in .Net

In this article I will try to explain the concepts of Boxing and Unboxing. There are two types of objects within the .Net framework, value types and reference types . Value types are stored on the stack while reference types are always stored on the heap...

Nifty extension methods

One of my favorite features in .Net 3.5 is the ability to extend a class using extension methods. Earlier you could only extend a class either by creating a new class that inherits from the first class or you could create a partial class. Of course if...
More Posts Next page »