本文介绍了在Visual Basic中以一种形式打开多个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿,我需要帮助
我正在尝试使用Visual Basic编程语言在单个表单上打开多个页面
我已经在下面的按钮中输入了此代码
hey i need help
am trying to open multiple pages on a single form in the programming language visual basic
i have enter this code in a button which follows
panel1.hide()
panel2.show()
它假设隐藏了panel1上的所有内容,并显示了panel2上的所有内容.但是,这没有用,我也尝试过此代码
it suppose to hide everything which is on panel1 and show everything which is on panel2.however that did not work and i have tried this code also
panel1.visible = false
panel2.visible = true
我没有得到我想要的东西
提前thx
and i did not get what i wanted
thx in advance
推荐答案
panel1.hide();
panel1.visible = false;
panel2.show();
panel2.visible = true;
panel2.BringToFront();
我确信.hide或.visible方法可能并不需要,但您必须对其进行测试.
I am sure that the .hide or .visible methods are probably not both necessary but you''d have to test it.
这篇关于在Visual Basic中以一种形式打开多个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!