设置CheckedComboBox1的Enter事件代码:
Dim ckb As WinForm.CheckedComboBox = e.Form.Controls("CheckedComboBox1")If e.Form.Controls("ComboBox1").Text = "是" Then e.sender.ReadOnly = BooleanEnum.False ckb.OpenDropDownElse e.sender.ReadOnly = BooleanEnum.True ckb.Value = Nothingnd If