guanwei 发表于 2017-8-7 20:22:03

使弹出的页面设置为不透明

给回答问题的学生加分后,开始计算,弹出的页面是透明的,不能覆盖张灯片,以致看不清加分。请帮我修改一下代码,设置弹出页面为不透明。
Private Sub CommandButton3_Click()
Dim txt As String
Dim i, m, n As Integer
If CommandButton3.Caption = "算" Then
txt = "小组得分:" & Chr(13) & Chr(10)
For i = 1 To zucount
m = i Mod 4
If m = 0 Then
txt = txt + "  " + CStr(i) + "组" + CStr(zus(i)) + "分" & Chr(13) & Chr(10)
Else
txt = txt + "  " + CStr(i) + "组" + CStr(zus(i)) + "分"
End If
Next
txt = txt & Chr(13) & Chr(10) & "个人得分:" & Chr(13) & Chr(10)
n = 1
For i = 0 To stucount
If studefen(i) > 0 Then
m = n Mod 3
If m = 0 Then
txt = txt + " " + Students(i, 1) + ":" + CStr(studefen(i)) + "分" & Chr(13) & Chr(10)
Else
txt = txt + " " + Students(i, 1) + ":" + CStr(studefen(i)) + "分"
End If
n = n + 1
End If
Next
Label2.Caption = txt
Label2.Visible = True
CommandButton3.Caption = "藏"
Else
Label2.Visible = False
CommandButton3.Caption = "算"
End If
End Sub

复制代码

lilian123 发表于 2017-8-13 16:08:43

好东西,努力学习学习!
页: [1]
查看完整版本: 使弹出的页面设置为不透明