Event to detect item added to ComboBox

后端 未结 4 1757
广开言路
广开言路 2021-01-23 17:37

I am creating a custom control that inherits from ComboBox. I need to detect when a Item is added to the ComboBox to perform my own checks. It doesn\'t matter if it\'s C# or Vb.

4条回答
  •  渐次进展
    2021-01-23 18:13

    If your ComboBox is backed by a BindingSource, then you could listen for the AddingItem event and handle it accordingly.

提交回复
热议问题