Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursive clear
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Recursive clear
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01399152
Message ID:
01399152
Views:
93
Hi everybody,

How can I access the parent object of the button.

I have this code in my Clear button
private void btnClear_Click(object sender, EventArgs e)
        {
            RecursiveClearTextBoxes(this.Controls);

        }
which doesn't work anymore. My button is on a tab in tabcontrol and I only want to clear this tab. Would (button)sender.Parent work ?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform