动态显示组框的问题 [英] problem displaying groupboxes dynamically
问题描述
我有一个flowlayout面板,其中有一个包含一些控件和按钮的组合框。我也创建了一个类似于上面提到的groupbox的usercontrol,它再次包含一个按钮。
我需要的功能是当我按下按钮时应该显示usercontrol组框。
我面临的问题是:第一次按下按钮我得到了groupbox,但是在随后的按钮点击(用户控制组框)中没有任何反应。 />
任何人都可以帮我这个。
感谢和关心Ananya
i have a flowlayout panel and within it there a groupbox containing some controls and a button. also i have created a usercontrol similar to the above mentioned groupbox again containing a button.
the functionality i require is when i press the button the usercontrol groupbox should be displayed.
the problem i am facing is : the first time i press the button i get the groupbox but in the subsequent button clicks(user control groupbox) nothing happens.
Can anyone help me with this.
Thanks and Regards Ananya
推荐答案
根据我的理解,我认为你在按钮上显示一个组合框时遇到问题点击另一个组框
但是第一次clik显示框。
因此您需要添加另一个事件来隐藏或关闭该框。
然后它将起作用...
As my understanding i think that ur facing problem in displaying one groupbox on button click of another groupbox
but 1st time clik display the box.
so you needs to add another event to hide or close that box.
then it will work...
这篇关于动态显示组框的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!