Object reference not set to an instance of an object visual basic code example Example: object reference not set to an instance of an object vb Board1.Init()