views:

31

answers:

2

Hello EveryOne,

I am using WPF Standalon application and at the login time we are loading complete Chart of Account List.

so it will take a time so we were use the thread like

            ThreadStart dataDownloadThread1 = delegate
            {
                    Dispatcher.BeginInvoke(DispatcherPriority.Send, (EventHandler)
                delegate
                {
                }, null, null);
            dataDownloadThread1.BeginInvoke(delegate(IAsyncResult aysncResult) { dataDownloadThread1.EndInvoke(aysncResult); }, null);

but still we are not happy so is there any way to improve perfomance...

Thanks...

A: 

You may want to check out this MSDN article on the WPF dispatcher.

Holstebroe
+2  A: 

Without knowing the details of what you're trying to do, I'd use a BackgroundWorker. Its specifically designed for doing work in the background of an application like you're trying to do.

Jon Mitchell