Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好的,我有一个问题,在我从组合框中选择不同的值后,我需要几个文本框来填充数据,我需要一个事件来完成它,但这由于某种原因不起作用:
private override void rasaCombo_SelectedIndexChanged(object sender, EventArgs e)
我已经对其进行了测试,它似乎甚至没有将其识别为有效事件,因为它从未进入代码的那部分。我正在使用 Visual C# 2010。帮助?
无需覆盖
private void rasaCombo_SelectedIndexChanged(object sender, EventArgs e)
检查您是否在某处订阅事件。
rasaCombo_.SelectedIndexChanged += rasaCombo_SelectedIndexChanged;
你为什么要覆盖事件处理程序?我不认为你需要它。