c# - PerformClick does not execute if placed after Show() -


i have windows form invisible button , progressbar. menuitem instantiate form , trigger click.

    private void form1_load(object sender, eventargs e)     {         show();         button1.performclick();      } 

if place show() above, performclick doesn't execute, sort of makes sense. if place show() after performclick, performclick executes form progressbar doesn't show until code of performclick has executed. no progressbar showing progress until complete. makese sense. how performclick work , have form progressbar showing progress both @ same time?

thanks


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -