如果你是想在用户选择后再弹出窗口,应该这样:
Event Form1.ComboBox1.SelectChange
If Form1.ComboBox1.ListIndex = 1 Then
//xxxxxxxxxxxxxxxx
Else if Form1.ComboBox1.ListIndex = 2 Then
//xxxxxxxxxxxxxxxx
Else
//xxxxxxxxxxxxxxxx
End If
End Event
如果你是让用户先选好,再在特定的时候弹出窗口,就把
Event Form1.ComboBox1.SelectChange
End Event
去掉就是了