从表单加载的选项卡控件中选择一个选项卡,其名称(作为字符串)VB [英] Select a tab from tab control on form load by its name (as a string) VB

查看:81
本文介绍了从表单加载的选项卡控件中选择一个选项卡,其名称(作为字符串)VB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的标签控件中的特定标签设置为显示的第一个标签,也可以选中。我只有选项卡名称作为字符串来执行此操作。



非常感谢

解决方案

尝试做一些研究通过MSDN

(无法正确格式化此链接,但它是TabControl.TabPages属性并有一些示例代码):

http:// msdn .microsoft.com / zh-CN / library / system.windows.forms.tabcontrol.tabpages(v = vs.110).aspx





TabControl.TabPagesCollection.Add方法 [ ^ ]

I'm trying to set a specific tab within my tab control to be the first tab shown and also be selected. I only have the tab name as a string to do this.

Many Thanks

解决方案

Try doing some research via MSDN
(Couldn't get this link to format properly, but it's the TabControl.TabPages Properties and has some sample code):
http://msdn.microsoft.com/en-us/library/system.windows.forms.tabcontrol.tabpages(v=vs.110).aspx


TabControl.TabPagesCollection.Add Method[^]


这篇关于从表单加载的选项卡控件中选择一个选项卡,其名称(作为字符串)VB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆