显示没有效果的继承形式 [英] Show Inherited Forms w/o effect
本文介绍了显示没有效果的继承形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿,
我正在创建一个已在一种表单上继承表单的项目.因为我可以使用(formname).show显示继承的表单,所以我想显示没有效果的表单(因为Windows中的show效果通常包括立即展开,然后显示控件,而我想显示没有show效果的表单) .有没有办法做到这一点?
感谢您的帮助:)
解决方案
您要在表格之间切换吗?最简单的方法是将表单创建为控件,并一次显示一个表单,这样就不会获得Windows在新表单上所做的效果,b/c表单永远不会改变.
重写.Show()方法并使用您想要的任何效果
http://msdn.microsoft.com /en-us/library/system.windows.forms.form.show(v=vs.80).aspx [ 解决方案
Are you going between forms ? The easiest way to do this, is to create your forms as controls and show them one at a time, so you don''t get the effect that Windows does on a new form, b/c the form never changes.
Override the .Show() method and use any effect you want
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.show(v=vs.80).aspx[^]
这篇关于显示没有效果的继承形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文