getting the following exception :

Object reference not set to an instance of an object.

Recommended Answers

All 4 Replies

With that amount of information, all that can be done to help you is Googleing (not too useful to you). Can you post some more info on the offending form?

dim newForm as new form2
newForm.show

if i have to guess with that information you posted d'oh

please give us some more details and post the code where the exception occurs!

I thought I had value to add to the thread but I made a mistake :)

Like it was mentioned above, you need to post the code causing the error.

getting the following exception :

Object reference not set to an instance of an object.

Check if you have declared a public variable to an object exist on the form in the declaration section.

hth

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.