>>>Paul,
>>>
>>>It stopped working :((((((((
>>
>>Change this:
>>
>>
>>this.RecursiveClearTextBoxes(this.btnClear.Parent.Controls);
>>// to
>>Button button = (Button)sender;
>>this.RecursiveClearTextBoxes(button.Parent.Controls);
>>
>
>I believe it should work the same.
If btnClear is directly on the form then it's the same (and a bit redundant - if it was on the form directly you don't need to access it's parent). If it's in a container then the two lines are different.
>The other problem - is there a way to not declare a private property of the form.
What do you mean to "not declare a private property"?
>I have this
>
> private DecodeControl deScan = new DecodeControl();
>
>and I decided to test with emulator instead - because this is how it worked before. But now I'm getting a different error (not supported device) - so I would have to comment this out.
>
>Any way to have the property defined?
From the description, no idea. How about posting the full error message?