c# Overriding a forms default size during runtime -


i'm coding program has subform changes language of controls during run-time disposing of controls , initialize them again. working fine, ran problem when change language when form maximized, controls shrink default size while form remains maximized.

i thought overriding default size getting current size of form @ moment of language change, don't know how to.

here code override:

protected override size defaultsize {         {         currentsize = program.frm.size;         return new size(currentsize.width, currentsize.height);     } } 

but don't know how call method in buttonclick event.

thanks in advance.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -