gpt4 book ai didi

vb.net - 最小 Vb.net 表单大小

转载 作者:行者123 更新时间:2023-12-02 08:25:26 25 4
gpt4 key购买 nike

我们可以缩小小于132和高度小于38的表单宽度吗?请帮我解决一下。

这是代码:

For i As Integer = 0 To meWidth
If (Me.Width > 0) Then
Me.Width = Me.Width - 20
Me.Refresh()
For FadeCount = 40 To 40 Step 20
Me.Opacity = FadeCount / 100
Threading.Thread.Sleep(10)
Next
Else
Exit For
End If
Next

最佳答案

您可以使用属性 Form.MinimumSize 定义最小表单大小。检查MSDN Documentation about it .

基本上:

This property enables you to limit the size of a form to a specified minimum size. You can use this feature to prevent a user from sizing a window to an undesirable size. If this property is set to a Size object that is 0 in height and 0 in width, the form will have no minimum size beyond the limits set by Windows.

关于vb.net - 最小 Vb.net 表单大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17313916/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com