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
Post a Comment