我收到此错误:
“ ListControl.SelectedValueChanged”事件只能出现在+ =或-=
的左侧Visual Studio说“ c.SelectedValueChanged”的类型为EventHandler
public Events ComboBox()
{
var c = new ComboBox();
return new Events(c,c.SelectedValueChanged); //Error
}
...
public class Events
{
public object control
public object events;
public Events(Control c,EventHandler e)
{
control = c;
events = e;
}
}