I have a Winform
application that receives the command line arguments and does some processing (creating a file, insert data to the database and upload a file to FTP). So in order to see the process I have a listbox
that displays information to the user. There is also a progress bar to see the insert status.
Inside my form load
event I have a RunCampaign()
function that itself invokes some other functions sequentially until the process is done. All these functions add items to the listbox
.
The problem is: Nothing (not even an empty form) is shown until the entire process is done. And when the process is complete the entire form containing the listbox of information and the progress bar is shown. And that is not my expected behavior.
How can I solve this problem?