Hi,

In the constructor of my main form class, (which is called by
Application.Run(MainClass) in main) I have InitializeComponent and to add to
it some heavy work to do. Also I want to show the progress bar of that heavy
work on to my UI. But I cannot show it since my UI is still not done. Also I
tried writing the "Heavy work" into some thread, but its also of no use
since the heavy work is blocking the UI, (i really donno why and which is
actually against the use of threads)

Can you suggest something as to how should i handle the thing.

Amit.

Re: Progress Bar Related. by Chris

Chris
Fri Jul 09 15:24:11 CDT 2004

Spawn a thread to do the heavy work before going into the Run loop and
Invoke back to the UI for the progress.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com



"Amit Patankar" <amit_v_patankar@yahoo.com> wrote in message
news:OmsFhHfZEHA.3012@tk2msftngp13.phx.gbl...
> Hi,
>
> In the constructor of my main form class, (which is called by
> Application.Run(MainClass) in main) I have InitializeComponent and to add
to
> it some heavy work to do. Also I want to show the progress bar of that
heavy
> work on to my UI. But I cannot show it since my UI is still not done. Also
I
> tried writing the "Heavy work" into some thread, but its also of no use
> since the heavy work is blocking the UI, (i really donno why and which is
> actually against the use of threads)
>
> Can you suggest something as to how should i handle the thing.
>
> Amit.
>
>