3个回答
展开全部
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "上"
Height = 495
Left = 1320
TabIndex = 2
Top = 2520
Width = 855
End
Begin VB.CommandButton Command1
Caption = "下"
Height = 495
Left = 2880
TabIndex = 1
Top = 2520
Width = 1095
End
Begin VB.TextBox Text1
Height = 615
Left = 1200
TabIndex = 0
Text = "Text1"
Top = 1200
Width = 1455
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Text1.Top = Text1.Top + 20
End Sub
Private Sub Command2_Click()
Text1.Top = Text1.Top - 20
End Sub
复制到记事本 后缀名改 frm
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "上"
Height = 495
Left = 1320
TabIndex = 2
Top = 2520
Width = 855
End
Begin VB.CommandButton Command1
Caption = "下"
Height = 495
Left = 2880
TabIndex = 1
Top = 2520
Width = 1095
End
Begin VB.TextBox Text1
Height = 615
Left = 1200
TabIndex = 0
Text = "Text1"
Top = 1200
Width = 1455
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Text1.Top = Text1.Top + 20
End Sub
Private Sub Command2_Click()
Text1.Top = Text1.Top - 20
End Sub
复制到记事本 后缀名改 frm
展开全部
Private Sub Command1_Click()
Text1.Text = ""
List1.Clear
Picture1.Cls
End Sub
Text1.Text = ""
List1.Clear
Picture1.Cls
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
改变text的 left 和top 属性即可。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询