VB6.0版中如何在标签内显示信息

2025-05-14 04:00:10
推荐回答(1个)
回答(1):

什么意思

标签是指Label控件吗,如果是的话。

在Form窗口中放入Label控件一个,取名叫Label1
再放放一个CommandButton控件一个,取名叫Command1

然后双击Command1控件,写入代码Label1.Caption = "百度一下,你就知道"

完整代码如下。

Private Sub Command1_Click()
Label1.Caption = "百度一下,你就知道"
End Sub