如何将一个事件称为另一个事件

如何将一个事件称为另一个事件

本文介绍了如何将一个事件称为另一个事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个numericUpDown1_ValueChanged事件,我想从form1的按键事件中调用此事件.

该怎么办???
tnx

i have a numericUpDown1_ValueChanged event and i want to call this event from keypress''s event of form1

how can do this???
tnx

推荐答案

KeyPressEvent Start

// Some other processing
CommonMethod();
// Some other processing

End

ValueChangedEvent Start

// Some other processing
CommonMethod();
// Some other processing

End

CommonMethod Start
// Some processing
End



如果您还有其他意思,请更新您的问题和/或在回复中留下评论.



If you meant something else, update your question and/or leave comment to the reply.




这篇关于如何将一个事件称为另一个事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 08:16