|
本帖最后由 454585737 于 2017-5-18 10:25 编辑
给回答问题的学生加分后,开始计算,弹出的页面是透明的,不能覆盖张灯片,以致看不清加分。请帮我修改一下代码,设置弹出页面为不透明。
- 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
复制代码
|
|