Article on www.allapi.net
This is an article I found at allapi.net
VB.NET
The heavily discussed (and perhaps feared) VB.NET is on its way!
This is probably the biggest update to VB ever, so it's a good idea to take a head start.
API's belong to the past with VB.NET. You won't need most of them anymore, because the Common Language Runtime (CLR) provides this functionality and much more.
In this list, we're going to try to provide a .NET alternative for the API functions you used to use in VB5/6.
Do note that this list is based on preliminary documentation, so it is subject to change.
Also note that you still can use API functions in your .NET applications. Here's a little VB.NET example that explains how to call the GetTickCount function:
'Import the System class (for the Console)
Imports System
Public Module modmain
'Declare the function.
'Longs are converted to Integers in VB.NET
Declare Function GetTickCount Lib "kernel32" () as Integer
Sub Main()
'Call the function, convert the result to a string
'and show that string on the screen
Console.WriteLine(GetTickCount.ToString)
End Sub
End Module
Although API's are still supported, it is certainly not the best way to program in VB.NET.