to phlding(phlding) ( ) 根据你说的不是combo的原因 你把你的代码贴出来看看
强制刷新一下窗体me.Refresh
我的代码就是 Private Sub Combo7_LostFocus() For i = 0 To Combo7.ListCount - 1 '判断系统是否存在 If Combo7.Text = Combo7.List(i) Then Exit Sub ElseIf i = Combo7.ListCount - 1 And Combo7.Text <> Combo7.List(i) Then MsgBox "没有开通此系统!", vbInformation + vbOKOnly, "无此系统" Combo7.SetFocus End If Next i
combo.[_Default] = "你想要的某一项数据"
End Sub
我的意思是COMBO的最后几项内容会残留驻留在窗体上
根据你说的不是combo的原因
你把你的代码贴出来看看
Private Sub Combo7_LostFocus()
For i = 0 To Combo7.ListCount - 1 '判断系统是否存在
If Combo7.Text = Combo7.List(i) Then
Exit Sub
ElseIf i = Combo7.ListCount - 1 And Combo7.Text <> Combo7.List(i) Then
MsgBox "没有开通此系统!", vbInformation + vbOKOnly, "无此系统"
Combo7.SetFocus
End If
Next i
End Sub