I have the immense pleasure of adding a feature or two to a POS system (POS in both definitions). This spaghetti code has user controls within user controls. The previous developers did things simply because it could be done, without reguard for future enhancements.
Now, one thing I must do, is make a text box visible or not based on the value of a checkbox. The problem is, that control to be made visible or hidden is nested within one user control and the checkbox on yet another nested user control.
I can't seem to be able to address the textbox's visible property, so I thought I would use the API to track it down and make it visible or not that way, but I can't remember the API code which will allow me to find the "Window" which is the textbox based on the name given it.
I shove in the right direction would be nice. Example code would be better.
TIA
Start Free Trial