Vb.net – object reference not set to an instance of object

vb.net

I have been getting an error in VB .Net

object reference not set to an instance of object.

Can you tell me what are the causes of this error ?

Best Solution

The object has not been initialized before use.

At the top of your code file type:

Option Strict On
Option Explicit On
Related Question