开发者

Be active a child form by giving its name or its text in c#

开发者 https://www.devze.com 2023-01-01 15:00 出处:网络
I have a Parent form with some child forms. Imagine some of these child forms are opened and their name or their text are shown in a something like tabpage. now when开发者_运维知识库 i click on a tab

I have a Parent form with some child forms. Imagine some of these child forms are opened and their name or their text are shown in a something like tabpage. now when开发者_运维知识库 i click on a tab page ,the related form must be active. What can i do?

Thanks.


If you know the name of the Tab you want to activate, use the Tabcontrol object to make it active

TabControl1.SelectedTab = MyChildTab

0

精彩评论

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

关注公众号