devxlogo

Tip Bank

Write a console utility to kill a process

The System.Diagnostics.Process class exposes two methods that let you kill a process: CloseMainWindow should be used with processes that have a graphical interface, whereas the Kill method should be used

Determine the size of a structure

Unlike previous Visual Basic versions, under VB.NET you can’t use the Len function to calculate the length of a Structure or a class. However, it is easy to get this

Release COM objects earlier

If you’re using a COM object through COM Interop you should be aware that the object isn’t released as soon as you set it to Nothing, as it happens with