mischmasch
Programmer
- May 10, 2011
- 11
Hello,
I'd like to display a short message (e.g. 'Please wait ...') on Panel before I start some long calculations. My code structure looks like below
Everything works ok, but there is a problem with correct order of steps.
When I execute program I see, that program makes calculations (it's diffucult calculations so program doesn't respond for a while), then dispalys message on panel (it should make it before calculations) and then exports result to excel and changes message on panel.
Even if in code editor, everything go step by step, finally result of Step 2 is after Step 3.
I've tried to use threads but unsuccessfully.
Any idea why calculations are made before displaying message?
Thank you in advance
I'd like to display a short message (e.g. 'Please wait ...') on Panel before I start some long calculations. My code structure looks like below
Code:
//1_check data
{...}
//2_show message on panel: 'Pleas wait ...'
{...}
//3_make calculation
{...}
//4_export result to excel
{...}
//5_change message on panel: ''
{...}
Everything works ok, but there is a problem with correct order of steps.
When I execute program I see, that program makes calculations (it's diffucult calculations so program doesn't respond for a while), then dispalys message on panel (it should make it before calculations) and then exports result to excel and changes message on panel.
Even if in code editor, everything go step by step, finally result of Step 2 is after Step 3.
I've tried to use threads but unsuccessfully.
Any idea why calculations are made before displaying message?
Thank you in advance