gpt4 book ai didi

.net - 在 CheckBox 的 CheckChanged 事件中使用 e 作为 System.EventArgs

转载 作者:行者123 更新时间:2023-12-01 11:08:55 24 4
gpt4 key购买 nike

请告诉我在 CheckBox 的 CheckChanged 事件中使用参数 e 作为 System.EventArgs

最佳答案

你可以忽略这个。

所有事件都具有相同的签名:void handler(object sender, XxxEventArgs e)

某些事件具有更多信息,并使用派生自 System.EventArgs 的类作为第二个参数。

例如:

private void MainForm_KeyPress(object sender, KeyPressEventArgs e)
{
char ch = e.KeyChar;
....
}

关于.net - 在 CheckBox 的 CheckChanged 事件中使用 e 作为 System.EventArgs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2373347/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com