I.T. Discussion Community!
-Collapse +Expand
VB.Net
Search VB.Net Group:

Advanced
-Collapse +Expand VB.Net To/From
To/FromCODEGuides
-Collapse +Expand VB.Net Store
PRESTWOODSTORE

Prestwood eMagazine

August Edition
Subscribe now! It's Free!
Enter your email:

   ► KB ►► ProgrammingVB.Net   Print This    All Groups  

VB.Net Language Most Read KB Posts

Page Contents


Most Read KB Articles Since 3/28/2008

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
11 years ago, and updated 8 years ago
(5 Comments , last by Greater.H )

Article
Nothing New Since Your Last Visit
39767
Hits

Mike Prestwood
2. 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
10 years ago

Code

Article
Nothing New Since Your Last Visit
25938
Hits

Mike Prestwood
3. VB.Net Left of Substring (Left or Substring)

The above usage of Left and Substring are equivalent.

Left is a traditional VB approach popular with developers moving from VB Classic to VB.Net. Substring is considered the .Net way of doing string manipulation.

Posted to KB Topic: VB.Net
11 years ago, and updated 11 years ago
(2 Comments , last by Bryce.M )

Code
Nothing New Since Your Last Visit
25407
Hits

Mike Prestwood
4. VB.Net Abstraction (MustInherit, MustOverride, Overrides)

VB.Net supports abstract class members and abstract classes using the MustInherit and MustOverride modifiers.An abstract class is indicated with a MustInherit modifier and is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (implicitly virtual), property, indexer, or event in an abstract class. You can add abstract members ONLY to abstract classes using the MustOverride keyword. Then you override it in a descendant class with Overrides.

Posted to KB Topic: OOP
11 years ago, and updated 10 years ago
(1 Comments , last by charlos.j )

Code

Article
Nothing New Since Your Last Visit
24291
Hits

Stephen Berry
5. Associative Arrays in Visual Basic (a Dictionary)

An associative array links a set of keys to a set of values. In Visual Basic, associative arrays are implemented as Dictionaries.

This code produces a message box saying "Nevada."

Posted to KB Topic: Language Basics
11 years ago, and updated 11 years ago
(12 Comments , last by preeti.s )

Code
Nothing New Since Your Last Visit
22909
Hits

Mike Prestwood
6. VB.Net Member Property (property, get, set)

VB.Net uses a special property keyword along with special get and set methods to both get and set the values of properties. For a read-only property, leave out the set method. The value keyword is used to refer to the member field. Properties can make use of any of the access modifiers (private, protected, etc).

My preference for VB.Net code is to start member fields with "F" ("FName" in our example) and drop the "F" with properties that manage member fields ("Name" in our example).

Posted to KB Topic: OOP
11 years ago, and updated 10 years ago

Code

KB Post
Nothing New Since Your Last Visit
20882
Hits

Mike Prestwood
7. VB.Net Comments (' or REM)

Languages Focus: Comments

Commenting code generally has three purposes: to document your code, for psuedo coding prior to coding, and to embed compiler directives. Most languages support both a single line comment and a multiple line comment. Some languages also use comments to give instructions to the compiler or interpreter.

VB.Net Comments

Commenting Code
VB.Net, like all the VB-based languages, uses a single quote (') or the original class-style basic "REM" (most developers just use a quote). VB.Net does NOT have a multiple line comment.

Posted to KB Topic: Tool Basics
11 years ago, and updated 10 years ago
(7 Comments , last by Ernestine.G )

Code
Nothing New Since Your Last Visit  
20357
Hits

Mike Prestwood
8. VB.Net Finalizer (Finalize())

Use a destructor to free unmanaged resources. A destructor is a method with the same name as the class but preceded with a tilde (as in ~ClassName). The destructor implicity creates an Object.Finalize method (you cannot directly call nor override the Object.Finalize method).

In VB.Net you cannot explicitly destroy an object. Instead, the .Net Frameworks garbage collector (GC) takes care of destroying all objects. The GC destroys the objects only when necessary. Some situations of necessity are when memory is exhausted or you explicitly call the System.GC.Collect method. In general, you never need to call  System.GC.Collect.

Posted to KB Topic: OOP
10 years ago, and updated 10 years ago
(2 Comments , last by jonsun.j )

Code

Article
Nothing New Since Your Last Visit  
19363
Hits

Mike Prestwood
9. VB.Net Associative Array (Dictionary)

An associative array links a set of keys to a set of values. In Visual Basic, associative arrays are implemented as Dictionaries.

This code produces a message box saying "Nevada."

Posted to KB Topic: Language Basics
11 years ago, and updated 10 years ago
(2 Comments , last by Edward.W2 )

Code
Nothing New Since Your Last Visit  
17505
Hits

Mike Prestwood
10. VB.Net Constructors (New)

 A sub named New. You can overload the constructor simply by adding two or more New subs with various parameters.

Public Class Cyborg
Public CyborgName As String
Public Sub New(ByVal pName As String)
CyborgName = pName
End Sub
End Class
Posted to KB Topic: OOP
10 years ago

Code

KB Post
Nothing New Since Your Last Visit  
15798
Hits



Most Read by Members

VB.Net Language Group

  KB Article    

Stephen Berry
1. Associative Arrays in Visual Basic (a Dictionary)

An associative array links a set of keys to a set of values. In Visual Basic, associative arrays are implemented as Dictionaries.

This code produces a message box saying "Nevada."

Posted to KB Topic: Language Basics
11 years ago, and updated 11 years ago
(12 Comments , last by preeti.s )

Code
Nothing New Since Your Last Visit
22909
Hits

Mike Prestwood
2. VB.Net Comments (' or REM)

Languages Focus: Comments

Commenting code generally has three purposes: to document your code, for psuedo coding prior to coding, and to embed compiler directives. Most languages support both a single line comment and a multiple line comment. Some languages also use comments to give instructions to the compiler or interpreter.

VB.Net Comments

Commenting Code
VB.Net, like all the VB-based languages, uses a single quote (') or the original class-style basic "REM" (most developers just use a quote). VB.Net does NOT have a multiple line comment.

Posted to KB Topic: Tool Basics
11 years ago, and updated 10 years ago
(7 Comments , last by Ernestine.G )

Code
Nothing New Since Your Last Visit  
20357
Hits

Mike Prestwood
3. 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
11 years ago, and updated 8 years ago
(5 Comments , last by Greater.H )

Article
Nothing New Since Your Last Visit
39767
Hits

Mike Prestwood
4. VB.Net Left of Substring (Left or Substring)

The above usage of Left and Substring are equivalent.

Left is a traditional VB approach popular with developers moving from VB Classic to VB.Net. Substring is considered the .Net way of doing string manipulation.

Posted to KB Topic: VB.Net
11 years ago, and updated 11 years ago
(2 Comments , last by Bryce.M )

Code
Nothing New Since Your Last Visit
25407
Hits

Mike Prestwood
5. VB.Net Abstraction (MustInherit, MustOverride, Overrides)

VB.Net supports abstract class members and abstract classes using the MustInherit and MustOverride modifiers.An abstract class is indicated with a MustInherit modifier and is a class with one or more abstract members and you cannot instantiate an abstract class. However, you can have additional implemented methods and properties. An abstract member is either a method (implicitly virtual), property, indexer, or event in an abstract class. You can add abstract members ONLY to abstract classes using the MustOverride keyword. Then you override it in a descendant class with Overrides.

Posted to KB Topic: OOP
11 years ago, and updated 10 years ago
(1 Comments , last by charlos.j )

Code

Article
Nothing New Since Your Last Visit
24291
Hits

Bryan Valencia
6. 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)
9 years ago

KB Post
Nothing New Since Your Last Visit
6513
Hits

Mike Prestwood
7. 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
10 years ago
(2 Comments , last by Hasbvijapade )

Code
Nothing New Since Your Last Visit  
14906
Hits

Mike Prestwood
8. VB.Net Associative Array (Dictionary)

An associative array links a set of keys to a set of values. In Visual Basic, associative arrays are implemented as Dictionaries.

This code produces a message box saying "Nevada."

Posted to KB Topic: Language Basics
11 years ago, and updated 10 years ago
(2 Comments , last by Edward.W2 )

Code
Nothing New Since Your Last Visit  
17505
Hits

Mike Prestwood
9. A 10 Minute VB.Net Winforms Quick Start The ButtonsVB project. Create a classic "Hello, World" application using Visual Studio .Net with VB.Net syntax. Requires either the full version or VB.Net Express Edition.
Posted to KB Topic: WinForms
11 years ago, and updated 11 years ago
(2 Comments , last by Uwais.Q )

Article
Nothing New Since Your Last Visit
11615
Hits

Mike Prestwood
10. VB.Net Finalizer (Finalize())

Use a destructor to free unmanaged resources. A destructor is a method with the same name as the class but preceded with a tilde (as in ~ClassName). The destructor implicity creates an Object.Finalize method (you cannot directly call nor override the Object.Finalize method).

In VB.Net you cannot explicitly destroy an object. Instead, the .Net Frameworks garbage collector (GC) takes care of destroying all objects. The GC destroys the objects only when necessary. Some situations of necessity are when memory is exhausted or you explicitly call the System.GC.Collect method. In general, you never need to call  System.GC.Collect.

Posted to KB Topic: OOP
10 years ago, and updated 10 years ago
(2 Comments , last by jonsun.j )

Code

Article
Nothing New Since Your Last Visit  
19363
Hits
Icon Legend:
Recent or not:
- Recent activity (within last two weeks).
- No activity last two weeks.
 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).
Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech