when creating user control in window forms, generating following error.... how can solve it...
"Code generation for property 'SearchKey' failed. Error was: 'Property accessor 'SearchKey' on object 'ucTextBox1' threw the following exception:'Object reference not set to an instance of an object.'"
'SearchKey' is property name added in the user control.
'ucTextBox1' is name of user control.
User control in c# windows applications
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 11, 2013, 9:24 PM EST
Do you have initialized all the controls in the UserControl?
Show us the code..