Okay, I need to give you some history of .NET... at first, by default, Options Strict was turned on. This is a good thing! It makes for better bug free code. Many of us have been waiting for this for a long time. But, some of the big-wigs in the VB world started crying?!?! Why... … Continue reading Turning On Option Strict in VB.NET
Category: VB.NET
Regular Expressions in VB.NET
Regular Expressions in .NET By Darren Neimke
Getting Registry Values in VB.NET
Using VB6, it took a lot of code to read values from the Registration Database. Well, not anymore with with VB.NET! Take a look at the code below. Imports Microsoft.Win32Function GetDBConnect() As StringDim pobjRegKey As RegistryKeyDim pstrValue As String pobjRegKey = _ Registry.LocalMachine.OpenSubKey("SYSTEM\CurrentControlSet\Services\MyService\Parameters", False) If Not IsNothing(pobjRegKey) Then pstrValue = pobjRegKey.GetValue("DBConnect", vbNullString).ToString Return pstrValue Else … Continue reading Getting Registry Values in VB.NET
