TabControl中的TabPages [英] TabPages in TabControl

查看:59
本文介绍了TabControl中的TabPages的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vb.net中创建了Windows应用程序.我在其中放置了一个带有两个tabPages的TabControl.在第一个TabPage中,我放置了一个按钮.现在,当我单击该按钮时,我想打开第二个Tabpage.请帮助我输入代码...

I have created a windows application in vb.net. in which i placed a TabControl with two tabPages. In First TabPage I placed a button..now i want when i click on this button the second Tabpage should be opened.Kindly help me with the code...

推荐答案

如果您要隐藏或显示标签页,则不可能.如果您只想选择按钮上的下一个标签页,请单击,希望对您有所帮助.
If u want to hide or show a tab page , that''s not possible. If u want just to select the next tab page on the button click then ,I hope this will help you.
tabControl1.SelectedTab() = TabPage2


您尝试了什么?您阅读过任何文档吗?您在Google寻求帮助吗?您拥有任何书籍吗?
What have you tried ? Did you read any documentation ? Did you google for help ? Do you own any books ?


一个简单的Google给出了这样的内容:
TabControl类 [
A simple Google gave this:
TabControl Class[^]

You can see the sample how you can access controls of tab pages and use the control events.


这篇关于TabControl中的TabPages的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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