开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜