在名称为form1的窗体上,画一个文本框内容为“计算机”,再画三个命令按钮,标题分别为居左、居中、居右
编写三个命令按钮的Click事件过程,使得分别单击居左居中居右按钮时,文本框的内容分别对应靠左靠中靠右对齐,每个事件过程只能写一条语句...
编写三个命令按钮的Click事件过程,使得分别单击居左居中居右按钮时,文本框的内容分别对应靠左靠中靠右对齐,每个事件过程只能写一条语句
展开
3个回答
展开全部
Private Sub Command1_Click() '居左
Text1.Alignment = 0
End Sub
Private Sub Command2_Click() '居中
Text1.Alignment = 2
End Sub
Private Sub Command3_Click() '居右
Text1.Alignment = 1
End Sub
Text1.Alignment = 0
End Sub
Private Sub Command2_Click() '居中
Text1.Alignment = 2
End Sub
Private Sub Command3_Click() '居右
Text1.Alignment = 1
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
简单
Private Sub Command1_Click()
Text1.Alignment = 0
End Sub
Private Sub Command2_Click()
Text1.Alignment = 2
End Sub
Private Sub Command3_Click()
Text1.Alignment = 1
End Sub
Private Sub Command1_Click()
Text1.Alignment = 0
End Sub
Private Sub Command2_Click()
Text1.Alignment = 2
End Sub
Private Sub Command3_Click()
Text1.Alignment = 1
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Command1_Click()
Text1.Alignment = 0
End Sub
Private Sub Command2_Click()
Text1.Alignment = 2
End Sub
Private Sub Command3_Click()
Text1.Alignment = 1
End Sub
Text1.Alignment = 0
End Sub
Private Sub Command2_Click()
Text1.Alignment = 2
End Sub
Private Sub Command3_Click()
Text1.Alignment = 1
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询