QuickTips Index - page 2
VB.NET's Logical Operators AndAlso and OrElse
VB.NET features two logical operators "AndAlso" and "OrElse" that weren't in previous versions. They do a lot more than the old "And" and "Or". This Quick Tip shows you what they can do.
The VB.NET Imports Statement
The actual effect of the Imports statement in VB.NET is often a source of confusion for people learning the language. And the interaction with VB.NET References makes for even more confusion. This Quick Tips article clears it up.
NaN, Infinity, and Divide by Zero in VB.NET
There are some unique and unexpected ways that the "divide by zero" problem is handled in VB.NET. This article explores what they are and how the NaN (Not a Number) and Infinity VB.NET constants should be coded.
Declaring Variables in Visual Basic .NET
Visual Basic .NET encourages you to be very explicit in declaring variables. In fact, 'Option Explicit' is the default in VB.NET. Complex variable declarations are possible and declarations do what you expect them to. Read this Quick Tip to understand more about how to declare variables.
Understanding How VB Logical Operators Work Bitwise
The VB logical operators AND, OR, NOT, and Xor do something interesting when they're evaluated 'bitwise' in VB.NET with a Boolean and an Integer. This article uses Xor to illustrate exactly what happens and why. It's a great exercise that will ensure that you understand exactly how they work.
Use CreateShortcut in VBScript to Manage Your Desktop
A really fast Quick Tip about a very useful object that you can use in VBScript - Visual Basic Script - to manage your desktop; the CreateShortcut object.
DEBUG and TRACE in VB.NET
Debugging in VB.NET usually means using the Debug icons to single-step your program and maybe a few breakpoints. But there are a lot of little known things about debugging. This quick tip shows just a few of the more useful ones.
Setting Tabs in VB.NET and VB6 Forms Components
An About Visual Basic reader asked: How can I align colums in a ListBox. VB6 doesn't provide a convenient way. You can do it in VB.NET but VB6 requires API calls. This article shows both ways, and it also shows you how to call the API.
Convert Text to Number in Excel
The advice on the web that tells you how to convert text to numbers in Excel doesn't work. The advice here does. Tested in Excel 2003 and Excel 2007.
Selecting the Components Used in the VB6 Package and Deployment Wizard (VB6)
Selecting the Components Used in the VB6 Package and Deployment Wizard (VB6)
Send and Receive EMail using Visual Basic
An About Visual Basic reader asked: How do I use Visual Basic to send and receive email?? A question and answer from About Visual Basic.
Using the Package and Deployment Wizard (VB6)
An About Visual Basic reader asked: How do I use the Packaging and Deployment Wizard to create files and folders when the user installs my application? A question and answer from About Visual Basic.
Processing a Web Page in Visual Basic
An About Visual Basic reader asked: How do I use Visual Basic to access the HTML code of a website? A question and answer from About Visual Basic.
1 | 2
