用户控件调整大小 [英] User Control Resize
问题描述
大家好
VB.NET 2003
有谁能告诉我如何阻止用户控件的大小调整
在设计时间和时间运行时间,好吗?
我正在寻找类似LOCKED属性的东西,但是能够将控件移动到窗体上的任何地方它''需要。
有什么想法吗?
TIA
< blockquote>我不认为这样的财产存在。如果有的话,它将在属性窗口的Design
类别中。
Matt
新手Coder写道:
大家好
VB.NET 2003
可以有人告诉我如何在设计时间和时间内停止用户控件的调整大小
运行时间,好吗?
我正在寻找类似LOCKED属性的东西,但是能够将控件移动到窗体上的任何地方它''需要。
有什么想法吗?
TIA
Newbie Coder写道:
任何人都可以告诉我如何在设计时间和时间内停止用户控件的调整大小
请运行时间?
阅读:
ParentControlDesigner(这是在MSDN中开始的最好的地方)
从中派生出设计者的基类。对于你的UserControl。
在类中,SelectionRules属性控制
外观/隐藏UserControl上的大小调整句柄 - 没有大小调整
句柄,没有设计时调整大小!
DesignerAttribute
用于将您的UserControl链接到您的设计师
DefaultSize属性
设置在设计时创建UserControl的大小。
在运行时,您可能必须覆盖/遮蔽尺寸,高度和宽度
属性。
HTH,
Phill W.
简单。将UserControls MaximumSize和MinimumSize属性设置为
相同的值。
" Newbie Coder" < ne ********** @ pleasespamme.com写信息
新闻:eW **************** @ TK2MSFTNGP06.phx .gbl ...
大家好
VB.NET 2003
任何人都可以告诉我如何在设计时间和时间内停止用户控件的调整大小
请问运行时间?
我正在寻找类似LOCKED房产的东西,但是能够
移动
控制无论何种形式,都需要它。
有什么想法吗?
TIA
Hi All
VB.NET 2003
Can anyone tell me how to stop a user control being able to be resized
during both design time & run time, please?
I am looking for something like the LOCKED property, but being able to move
the control to wherever on the form it''s needed.
Any ideas?
TIA
I don''t think such a property exists. It would be in the Design
category of the properties window if there was one.
Matt
Newbie Coder wrote:
Hi All
VB.NET 2003
Can anyone tell me how to stop a user control being able to be resized
during both design time & run time, please?
I am looking for something like the LOCKED property, but being able to move
the control to wherever on the form it''s needed.
Any ideas?
TIA
Newbie Coder wrote:
Can anyone tell me how to stop a user control being able to be resized
during both design time & run time, please?Read up on:
ParentControlDesigner (this is the best place to start in MSDN)
A base class from which you derive a "designer" for your UserControl.
Within the class, the SelectionRules property controls the
appearance/hiding of sizing handles on your UserControl - no sizing
handle, no design-time resizing!
DesignerAttribute
Used to link your UserControl to your "designer" class.
DefaultSize property
Sets the size of the UserControl when it is created at design time.
At Run-Time, you may have to override/shadow the Size, Height and Width
properties.
HTH,
Phill W.
Easy. Set the UserControls MaximumSize and MinimumSize properties to the
same value.
"Newbie Coder" <ne**********@pleasespamme.comwrote in message
news:eW****************@TK2MSFTNGP06.phx.gbl...Hi All
VB.NET 2003
Can anyone tell me how to stop a user control being able to be resized
during both design time & run time, please?
I am looking for something like the LOCKED property, but being able to
move
the control to wherever on the form it''s needed.
Any ideas?
TIA
这篇关于用户控件调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!