0

程序员们,我有以下问题,但让我向您解释一下我的应用程序当它更改为 False 时,但我有一个问题,就在我单击 Combo 它被锁定的那一刻,我的意思是属性更改为 False,我有以下代码。

Private Sub cbResp1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cbResp1.Click

    Select Case cbResp1.Text
        Case Is = "Buena"
            Correctas = Correctas + 1
        Case Is = "Mala"
            Correctas = Correctas
    End Select

    Me.cbResp1.Enabled = False

End Sub

希望你能帮助我,谢谢

4

2 回答 2

0

让我告诉你,我已经修好了!看看这个事件。问题是我试图在它被点击时锁定它,但我不得不在 SelectedIndexChanged 事件中对锁定进行编程。感谢您的帮助

于 2012-10-06T05:19:19.577 回答
0

尝试这个...

Private Sub cbResp1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cbResp1.Click
    Select Case cbResp1.Text
        Case "Buena"
            Correctas = Correctas + 1
            Me.cbResp1.Enabled = False
        Case "Mala"
            Me.cbResp1.Enabled = False
    End Select
End Sub
于 2012-10-05T03:17:24.623 回答