问题
I have a form in which i paint a waveform on a button click that is as soon as i click button, the waveform displays. Now when i minimize the form and maximize it again, the waveform disappears.How to repaint it? I have seen people using paint event but i dont know how to use it after/inside the button click event. Please help.
回答1:
If you call Control.Invalidate(), the Paint event will occur.
来源:https://stackoverflow.com/questions/2665900/how-do-i-repaint-a-form-after-it-was-restored-from-a-minimized-state