0

I have a problem with loading data in UI. In particular I have a form in which there's a button that loading a new form (is a "Next" button in a Wizard) and loading data. The problem is that when I click button the button remains pressed withount changing the view. Only when the loading data is completed the other view with data is shown. Instead I want the new view is showed when I click button (becouse in this view there are a progress bar that is in progress while loading data is being executed).

How Can I resolve this problem? I tried with task, thread and backgroundworked but without success.

bool Initialize()
{
  InizializationForm();
  LoadingData();
  return true;
}

Should LoadingData be asyncronous?

blinkettaro
  • 341
  • 6
  • 18

0 Answers0