VB.NET


C# Goes Back to BASICs with Local Functions

C# finally gets the BASIC GOSUB feature through local functions, but local functions take that GOSUB-like capability up a few notches.

Viva, Visual Basic! Or, Does VB Have a Future?

Long live the programming language that is still running strong well into the second half of its third decade. What might help it is a provision for VB-based .NET Core and .NET Standard libraries in an upcoming VS 2017 release.

The Fraternal Twins of Equals and GetHashCode

Lots of searching through lots of data means potential app performance degradation. Hash codes can speed things up.

Feature or Flaw? Microsoft Outlook's View Code Might Be Hackable

Sensepost says it has discovered a method for hackers to compromise Microsoft Outlook by way of a Visual Basic-embedded shell. The catch: It requires a feat of social engineering to pull it off.

The Best Option for Selecting Related LINQ Objects

Here's the best performing option when you're retrieving the objects at the end of an entity class's navigation property, either when you only want some of the objects or when you only want them some of the time.

Creating a Custom Start Page in Visual Studio 2017

Visual Studio is all about making the developer coding experience more streamlined, allowing you to get to elements of the IDE that matter to you most. Customizing the Start Page is, well, a good start.

Adding New Formats to Old Data

The custom formatters in the .NET Framework provide a more seamless way to mix traditional and custom formatting situations.

C# and VB Data Conversion in a World of Cruel Users

While Visual Basic is a bit more forgiving with data conversions, you'll need to jump through some hoops to do similar conversions in C#.

Move Beyond Factory Methods with the Builder Pattern in C#/Visual Basic

When your objects get sufficiently complicated to create, it's time to simplify your life by moving to the Builder pattern. The Builder pattern is not only a great pattern for creating complicated objects, it supports your application's further evolution.

VB-.NET Refactoring Tool Adds VS 2017 Support

Mobilize.net now has support for Visual Studio 2017 for users of its VB-to-.NET code migration tool.

Yes, Finally, Visual Studio 2017 Now Available

No secrets here, as features and updates of the suite have been portioned out in public testing in the months and weeks leading up to the launch. So much of what's new in this morning's announcements has to do with the current state of several VS iterations, including the Mac and Mobile Center previews, as well as some new benefits.

Shortcuts for Defining Anonymous Objects in C# and VB

Here are two ways to save some typing when defining anonymous objects. One only works in Visual Basic, though.

Pattern Matching in C# 7.0 Case Blocks

Welcome to the 21st century, C#, now that case blocks support a variety of pattern-matching formats.

Making Sense of Class Modifiers in C# and Visual Basic

Both are .NET Framework-based, but they don't seem to be speaking the same language.

Sneak Preview of a Leaner, More Nimble Visual Studio 2017

From Visual Studio Live! in Orlando, Microsoft's Tim Sneath offered an extensive look inside the next-generation development platform.

It's Safe to Handle Unhandled Visual Basic and C# Exceptions

Pile on the exceptions, and .NET will have your back with the tools it provides at your disposal.

Life Without On Error Resume Next

The alternative to that simple error-handling combo is the Try...Catch, but it's not as simple as wrapping up your code with it.

Magic Forms Access in Visual Basic and C#

Look behind the curtain on this one, and you'll see that code is quite magical in and of itself.

Visual Studio LightSwitch Gets Turned Off

As Microsoft ends further development of LightSwitch, the "development" tool aimed at line-of-business types, it introduces an alternative: PowerApps.

Tricks with Goto in Visual Basic and C#

Goto statements, whether they're used in Visual Basic or C#, can be confounding as to their purpose in some contexts.

Upcoming Events

.NET Insight

Sign up for our newsletter.

I agree to this site's Privacy Policy.