Getting "Object reference not set to an instance of an object" err msg when trying to add panel

  • Thread starter Thread starter tJ
  • Start date Start date
T

tJ

Hi

I'm working on a form with a splitControl. In the RHS panel2, I need to
add a panel to drop radioButtons onto. But when i do this, I get the
following error message:

"Object reference not set to an instance of an object"

Can anyone please tell me how i can solve this problem?
Thanks in advance,
Tasneem
 
hi

that error happens when you try to use a property or a method from an
instance without assign it previously,

like

arrayList_instance.Add ( "test")

if arrayList is not assigned previously you get that error.

put a breakpoint in the error line and see what object does not has a value.


cheers,
 
Thanks Ignacio :)

I managed to trace the problem to my forms' designer class. Controls
that i thought were deleted were still all over it! Had to manually
edit it, all's fine now. Weird!
Cheers,
Tasneem

tasneemj AT korbitec.com
 
Back
Top