开发者

Finding control in Windows Forms panel

开发者 https://www.devze.com 2023-01-02 09:09 出处:网络
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 vers

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

0

精彩评论

暂无评论...
验证码 换一张
取 消