Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
Using UltraProgressBar in WinForm
posted

Hi all,
in my WinForm, with an UltraGrid, I have a long time consuming method (that starts some SSIS package in the database).
Is it possible to using an UltraProgressBar in the WinForm that starts at the user button click, and stops at the end of the method itself?

Thanks in advance.

Parents
  • 69832
    Suggested Answer
    Offline posted

    Typically what you do is execute your time-consuming method on a different thread (you could use the BackgroundWorker component to do this), and then update the value of the UltraProgressBar by setting its Value property using the BeginInvoke method. Note that you must not set the Value property directly from the other thread as you would then be attempting an illegal cross-thread operation, which eventually will cause an exception to be thrown.

Reply Children