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