问题描述
(A)我编写了一个窗口表单应用程序,下面有一些组件:
1.主要形式(MainForm).
2.将ToolStripContainer(ToolStripContainer_a)添加到MainForm中.
3.有服务器运行时创建的表单,这些表单将添加到
ToolStripContainer_a.
4.我发现这些表格(A.3以上)不能设置为MainForm的子元素
(即这些表格没有MDI功能),因为这些表格不是
直接添加到MainForm中,但又添加到ToolStripConanier_a中.
(B)我的问题的描述:
1.通常,窗体可以具有SetStyle方法:
(A) I write a window form application, there are components below :
1. a main form (MainForm).
2. a ToolStripContainer (ToolStripContainer_a) which is added into MainForm.
3. there are serveral runtime created forms which will be added into
ToolStripContainer_a.
4. I found that these form (above A.3) can not be set as a child of MainForm
(ie there is no MDI feature for these forms), since these form is not
directly added into MainForm, but is added into ToolStripConanier_a.
(B) The description of my question :
1. normally, a form can have a method of SetStyle, :
form.SetStyle(ControlStyles.DoubleBuffer, true);
2.但是,我想上面A.3中的表单不能具有SetStyle方法. 这是因为这些表格不是"MainForm的子级",是
对吗?
3.如何让那些表格(在A.3以上)具有SetStyle方法,或者是否存在
还有其他方法可以达到相同的功能吗?由于我还将设置不透明度"
这些形式的属性,但是没有用于设置的不透明度"属性.
2. however, the forms, in above A.3, can not have the SetStyle method, I suppose
this is due to that these forms are ''not a child of MainForm'', is that
right ?
3. how can I let those forms (in above A.3) have SetStyle method, or, is there
any other way to reach same function ? Since I also would set the ''Opacity''
attribute of those forms, however there is no ''Opacity'' attribute for setting.
推荐答案
这篇关于关于SetStyle方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!