Mega Code Archive

 
Categories / VB.Net Tutorial / Class Module
 

Define a sub routine and call it

Option Strict On  Imports System    Module Module1     Sub Main( )        Console.WriteLine("In Main! ")        SomeMethod( )        Console.WriteLine("Back in Main( ).")     End Sub 'Main     Sub SomeMethod( )        Console.WriteLine("Greetings from SomeMethod!")     End Sub   End Module In Main! Greetings from SomeMethod! Back in Main( ).