How do I write a class for something like this
Example: I have a form that has a panel on it. That panel has an tabbed control. In that tabbed control there is a textbox. If I pass the form as the start control and “textbox1” [the name of the TextBox], the class will return the texbox control as a control. This is using c#, asp.net.
So in a form load event, I should be able to do this search as follows:
Control txtCtrl = Search.FindControl(“textbox1”, this);
Something like this maybe:
As @i4v mentioned, a class does not return anything but you could add a function that will return something. That being said, this seems like an odd requirement. Can you explain what you are trying to do?