VB 选择一项下拉框,将对应文本所代表的内容显示在文本框里

2025-05-15 04:49:17
推荐回答(1个)
回答(1):

Private Sub Combo1_Click()
    Select Case Combo1.Text
    
        Case "1"
            Text1.Text = "a"
        
        Case "2"
            Text1.Text = "b"
            
        Case "3"
            Text1.Text = "c"
    End Select
End Sub