窗体的FormCanResize事件与FormResize???(30分)

  • 主题发起人 主题发起人 lzchinaboy1
  • 开始时间 开始时间
L

lzchinaboy1

Unregistered / Unconfirmed
GUEST, unregistred user!
这两者之间有什么区别??
者是resize
 
FormCanResize是在resize前發生﹐來控制是否可以resize。
FormResize是在resize后發生。
 
FormCanResize是在resize前發生﹐來控制是否可以resize。
这句还有点不明白??
你的意思是说可以让onresize不发生??
再说明白点马上给分
 
OnCanResize event
Occurs when an attempt is made to resize the control.
Description

Use OnCanResize to adjust the way a control is resized. If necessary, change the new width and height of the control in the OnCanResize event handler. The OnCanResize event handler also allows applications to indicate that the entire resize should be aborted.

If there is no OnCanResize event handler, or if the OnCanResize event handler indicates that the resize attempt can proceed, the OnCanResize event is followed immediately by an OnConstrainedResize event.


OnResize event
Occurs immediately after the control is resized.
Use OnResize to make any final adjustments after a control is resized.

To modify the way a control responds when an attempt is made to resize it, use OnCanResize or OnConstrainedResize.

Note: Some controls call this event handler when the control is first created.
 
FormCanResize是在resize前發生﹐
你看看帮助就知道了
 
to lzchinaboy1:
的确是用于控制onresize发生否。
 
那到底是用onresize好,还是用FormCanResize???
 
當然一般用onresize。
 
好的。 给分
 
后退
顶部