比如,当窗体的高度小于一定的值时,在用鼠标往小的方向拖拉form就不变大小
如何实现这种效果
谢谢关注

解决方案 »

  1.   

    http://community.csdn.net/Expert/topic/3380/3380431.xml?temp=.6764185
      

  2.   

    最简单的例子
    Private Sub Form_Resize()
    On Error Resume Next
    If Me.Width > 5800 Then Me.Width = 4800
    If Me.Height > 4800 Then Me.Height = 3800
    End Sub
    其它的自己写:)
      

  3.   

    强烈推荐
    http://community.csdn.net/Expert/topic/3380/3380431.xml?temp=.6764185
      

  4.   

    http://community.csdn.net/Expert/topic/3380/3380431.xml?temp=.7450067
      

  5.   

    Private Sub Form_Resize()  If Me.Width <= 6000 Then Me.Width = 6000
      If Me.Height <= 4000 Then Me.Height = 4000End If
      

  6.   

    可以在Form_Load()中保存一个数值,例如初始大小,在Form_Resize()检查Form的大小是否小于该数值,是则改为初始大小