编写一窗体程序,在窗体上显示一段文字“欢迎学习VB程序设计!”。当单击窗体时,
2个回答
展开全部
Private Sub Form_Click()
Label1.Font = "黑体"
Label1.FontSize = "22"
Label1.ForeColor = vbRed
Label1.Left = 0.5 * Form1.Width
Label1.Top = 0.5 * Form1.Height
End Sub
Private Sub Form_Load()
Label1.Caption = "欢迎学习vb程序设计"
End Sub
Private Sub Form_DblClick()
Label1.Font = "隶书"
Label1.FontSize = "22"
Label1.ForeColor = vbBlue
Label1.Left = 0
Label1.Top = 0
End Sub
Label1.Font = "黑体"
Label1.FontSize = "22"
Label1.ForeColor = vbRed
Label1.Left = 0.5 * Form1.Width
Label1.Top = 0.5 * Form1.Height
End Sub
Private Sub Form_Load()
Label1.Caption = "欢迎学习vb程序设计"
End Sub
Private Sub Form_DblClick()
Label1.Font = "隶书"
Label1.FontSize = "22"
Label1.ForeColor = vbBlue
Label1.Left = 0
Label1.Top = 0
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询