使用VB设计一个窗体,无最大化,最小化,不能移动
5个回答
展开全部
上面的代码是实现不了的,必须先定义好Form的外观,设置Form1的BorderStyle属性=None,窗体上添加一个按钮用于退出,代码如下:
Private Sub Command1_Click()
End
End Sub
Private Sub Form_Click()
Me.Circle (1000, 1000), 1000, 10000
End Sub
Private Sub Command1_Click()
End
End Sub
Private Sub Form_Click()
Me.Circle (1000, 1000), 1000, 10000
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form1_Load()
Me.MaxButton = False
Me.MinButton = False
Me.Moveable = False
End Sub
Private Sub Form_Click()
Me.Circle (1000, 1000), 1000, 10000
End Sub
Me.MaxButton = False
Me.MinButton = False
Me.Moveable = False
End Sub
Private Sub Form_Click()
Me.Circle (1000, 1000), 1000, 10000
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
'窗体的Borderstyle 属性设置为 1 -Fixed Singel
'Moveable属性设置为False
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
Me.AutoRedraw = True
Me.CurrentX = X
Me.CurrentY = Y
Circle (X, Y), 1000
End If
End Sub
'Moveable属性设置为False
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
Me.AutoRedraw = True
Me.CurrentX = X
Me.CurrentY = Y
Circle (X, Y), 1000
End If
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form_Load()
Form1.ControlBox=False '这是一种
Form1.BorderStyle = 0 '这条可要可不要
Form1.Moveable = False
End Sub
Private Sub Form1_Click()
Circle(1000,1000),1000
End Sub
Form1.ControlBox=False '这是一种
Form1.BorderStyle = 0 '这条可要可不要
Form1.Moveable = False
End Sub
Private Sub Form1_Click()
Circle(1000,1000),1000
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询