0

如果组合框的下拉样式为“dropwdownlist”,您如何清除或刷新 Visual Basic 2008 中的组合框?如果样式为“下拉列表”,我可以刷新组合框,但是当我将其更改为“下拉列表”时,我无法再清除它/

这是我用来清除文本的代码。

End With
    With cmbItemType
        cmbItemType.ResetText()
    End With
4

1 回答 1

0

设置selectedindex为 -1

在你的情况下,它应该是cmbItemType.SelectedIndex = -1

于 2012-10-07T08:36:20.630 回答