I'm writing a music player using NAudio. Before I close the player, I would like to call some methods that stop the playback. How do I do this?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
I think that
Form.closed
event would be good as well.edit: only if you have one form
WinForms
Subscribe to the
Application.ApplicationExit
event and in the event handler do your shutdown code.WPF
Subscribe to the
Application.Exit
event and in the event handler do your shutdown code.