我希望你能帮助我:)) 我想阻止/启用 PictureBox 来接收事件,我自己做不到,请帮助我 :) 比事先:*
最佳答案
只需禁用PictureBox
:
PictureBox1.Enabled = false; // Will not fire any events
PictureBox1.Enabled = true; // Will now fire events
当它被禁用时,它不会引发任何事件。但是,没有办法阻止其他事件更改 PictureBox 的属性,除非您创建自己的继承自 PictureBox 的类并覆盖/隐藏所有其他属性/方法调用。
关于c# - 阻止 PictureBox 接收事件 C#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3802530/