graphics - paint event in c#.Net -


i have following controls in application,

  • a user control consists of panel
  • an 'open' button use paint event draw image(browsed , selected using openfiledialog) on user control. works fine first image. if use openfiledialog open second image, part size of openfiledialog not shown in control. problem using paint event ?

use control handle paint event.if control usercontroll after dialog:

myusercontrol.invalidate() 

invalidate method calls paint event specified control again automatically.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -