Finding control in Windows Forms panel
I need to find a child control in a Windows Forms panel. I was wondering if there is a method similar to Panel.FindControl() of the ASP.NET webforms panel in the .NET W开发者_运维问答indows Forms version.
You can achieve like this:
mypanel.Controls.Find("mycontrolname",true);
The documentation is here: Control.ControlCollection.Find Method
精彩评论