By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,687 Members | 2,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,687 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"tJ" <ta******@korbitec.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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

Nov 16 '05 #2

P: n/a
tJ
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

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.