Click here to Skip to main content
15,908,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Why do i see this error when i open a winform in design view?
it comes in a blue page:

Object reference not set to an instance of an object
Posted
Comments
Pooyan Behroozfar 1-Aug-10 5:46am    
.

1 solution

Object reference not set to an instance of an object
This simply means you are trying to access certain property of an object that is NULL.

Use DEBUGGER, and see which line is throwing this error. Check the object value for NULL before using any of it's property.
 
Share this answer
 
Comments
Sandeep Mewara 1-Aug-10 5:24am    
Surely you are not putting it at right place. Check the full stack trace of the error and you might get it where it is. As said, the reason is accessing a property of NULL object. Check if anything like that is there.
Pooyan Behroozfar 1-Aug-10 5:47am    
i didn't write any code

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900