VB.Net Language New and Updated KB Posts

Page Contents


Recently Created

(VB.Net Language Group)

  KB Article  

Bryan Valencia
1. ASP.NET Cheat Sheet

Here's some copy-and-paste code that I use weekly.  Bookmark it and save yourself hours!

Posted to KB Topic: WebForms (ASP.Net)
7/19/2010

KB Post
Nothing New Since Your Last Visit
6925
Hits

Wes Peterson
2. Telerik Extensions for ASP.NET MVC - Free http://www.telerik.com/products/aspnet-mvc.aspx?utm_source=CodeProjectNewsletter&utm_medium=banner&utm_campaign=MVC_Jan15
Posted to KB Topic: Tool Basics
1/29/2010

Link
Nothing New Since Your Last Visit
9216
Hits

Mike Prestwood
3. VB.Net Empty String Check (String.IsNullOrEmpty)

The .Net framework offers a static method in the string class: String.IsNullOrEmpty.

Posted to KB Topic: VB.Net
9/19/2009

Code
Nothing New Since Your Last Visit  
16048
Hits

Mike Prestwood
4. VB.Net Polymorphism

C# supports the following types of polymorphism:

Posted to KB Topic: OOP
3/14/2009

Code
Nothing New Since Your Last Visit
10549
Hits

Mike Prestwood
5. VB.Net Overriding (Overridable, Overrides)

In VB.Net, you specify a virtual method with the Overridable keyword in a parent class and extend (or replace) it in a descendant class using the Overrides keyword.

Use the base keyword in the descendant method to execute the code in the parent method, i.e. base.SomeMethod().

Posted to KB Topic: OOP
3/8/2009

Code

Article
Nothing New Since Your Last Visit
27704
Hits

Mike Prestwood
6. VB.Net Pointers (None)

VB.Net doesn't support pointers. The closest it comes is IntPtr which you use to get pointer handles on windows, files, etc.

C# does have better support for pointers and C++/CLI has extensive support. One solution when it's really needed in VB.Net is to code in C# or C++/CLI and add it to your project.

However, VB.Net does support references.

Posted to KB Topic: Language Details
2/28/2009

Code
Nothing New Since Your Last Visit  
9676
Hits

Mike Prestwood
7. VB.Net Self Keyword (Me)

To refer to the current instance of a class or structure, use the Me keyword. Me provides a way to refer to the specific instance in which the code is currently executing. It is particularly useful for passing information about the currently executing instance.

The Me keyword is also used as a modifier of the first parameter of an extension method.

You cannot use Me with static method functions because static methods do not belong to an object instance. If you try, you'll get an error.

Posted to KB Topic: OOP
2/27/2009

Code
Nothing New Since Your Last Visit  
10463
Hits

Mike Prestwood
8. VB.Net Member Modifiers

The method modifiers include MustOverride, NotOverridable, Overridable, Overrides. Specify VB.Net member modifiers as follows:

Public Overrides Function SomeFunction() As Double

The field modifiers include ReadOnly and Shared. Specify field modifiers as follows:

Public ReadOnly SomeField As String

Posted to KB Topic: OOP
2/21/2009

Code
Nothing New Since Your Last Visit
9264
Hits

Mike Prestwood
9. VB.Net Deployment Overview

VB.Net projects require the .Net framework and any additional dependencies you've added such as Crystal Reports.

In Visual Studio.Net, you can create a Setup and Deployment project by using any of the templates available on the New Project dialog (Other Project Types).

In addition, VB.Net projects also support ClickOnce which brings the ease of Web deployment to Windows Forms and console applications. To get started, right click on your solution in the Solution Explorer, click Properties then select the Security tab. 

In addition, you can use any of the many free and commercially available installation packages.

Posted to KB Topic: Tool Basics
2/13/2009

Code
Nothing New Since Your Last Visit  
9692
Hits

Mike Prestwood
10. VB.Net Logical Operators

VB.Net logical operators:

And and, as in this and that
Or or, as in this or that
Not Not, as in Not This
Xor either or, as in this or that but not both

Posted to KB Topic: Language Basics
2/11/2009

Code
Nothing New Since Your Last Visit  
9992
Hits




Recently Updated

(VB.Net Language Group)

  KB Article  

Mike Prestwood
1. A 10 Minute VB.Net Console Application Quick Start

This will show how to make a "hello world" console application in Visual Studio 2008 using VB.Net.

Posted to KB Topic: Tool Basics
10/8/2008, and updated 1/31/2011

Article
Nothing New Since Your Last Visit
40910
Hits

Bryan Valencia
2. ASP.NET Cheat Sheet

Here's some copy-and-paste code that I use weekly.  Bookmark it and save yourself hours!

Posted to KB Topic: WebForms (ASP.Net)
7/19/2010

KB Post
Nothing New Since Your Last Visit
6925
Hits

Wes Peterson
3. Telerik Extensions for ASP.NET MVC - Free http://www.telerik.com/products/aspnet-mvc.aspx?utm_source=CodeProjectNewsletter&utm_medium=banner&utm_campaign=MVC_Jan15
Posted to KB Topic: Tool Basics
1/29/2010

Link
Nothing New Since Your Last Visit
9216
Hits

Mike Prestwood
4. VB.Net Constants (Const kPI Double = 3.1459)

In VB.Net, you define constants with the Const keyword.

All constants are part of a class (no global constants) but you can make a constant public and have access to it using ClassName.ConstantName so long as you have added the class to the project. This works even without creating the class as if the public constants were static, but you cannot use the Shared keyword.

Constants must be of an integral type (sbyte, byte, short, ushort, int, uint, long, ulong, char, float, double, decimal, bool, or string), an enumeration, or a reference to null.

Posted to KB Topic: Tool Basics
12/16/2008, and updated 10/24/2009

Code
Nothing New Since Your Last Visit  
12553
Hits

Kim Berry
5. Your First ASP.NET Page

This article provides a simple and free means of experimenting with ASP.NET

Posted to KB Topic: WebForms (ASP.Net)
12/12/2002, and updated 10/24/2009

Article
Nothing New Since Your Last Visit
6413
Hits

Mike Prestwood
6. VB.Net Overloading (Overloads, or implicit)

VB.Net supports both method and operator overloading.

For method overloading, you either use implicit overloading (no special syntax like C#) or use the Overloads keyword. If you use the Overloads keyword, all overloaded methods with the same name in the same class must include the Overloads keyword.

Posted to KB Topic: Language Basics
10/27/2008, and updated 10/24/2009

Code
Nothing New Since Your Last Visit  
12668
Hits

Mike Prestwood
7. VB.Net Member Field

In VB.Net you can set the visibility of a member field to any visibility: private, protected, public, friend or protected friend.

You can intialize a member field with a default when declared. If you set the member field value in your constructor, it will override the default value.

Finally, you can use the Shared modifier (no instance required) and ReadOnly modifier (similar to a constant).

Posted to KB Topic: OOP
12/26/2008, and updated 10/24/2009

Code

Article
Nothing New Since Your Last Visit
12764
Hits

Mike Prestwood
8. VB.Net Empty String Check (String.IsNullOrEmpty)

The .Net framework offers a static method in the string class: String.IsNullOrEmpty.

Posted to KB Topic: VB.Net
9/19/2009

Code
Nothing New Since Your Last Visit  
16048
Hits

Mike Prestwood
9. VB.Net Polymorphism

C# supports the following types of polymorphism:

Posted to KB Topic: OOP
3/14/2009

Code
Nothing New Since Your Last Visit
10549
Hits

Mike Prestwood
10. VB.Net Overriding (Overridable, Overrides)

In VB.Net, you specify a virtual method with the Overridable keyword in a parent class and extend (or replace) it in a descendant class using the Overrides keyword.

Use the base keyword in the descendant method to execute the code in the parent method, i.e. base.SomeMethod().

Posted to KB Topic: OOP
3/8/2009

Code

Article
Nothing New Since Your Last Visit
27704
Hits
Icon Legend:
Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).
www.prestwood.com For service: 916-726-5675
or support@prestwood.com
Copyright (C) Prestwood IT Solutions.
All Rights Reserved.
Printed 10/18/2021