Page 1 of 1

Adding "background task running" to status bar

PostPosted: Tue Aug 13, 2019 10:38 am
by pricerc
So, in lieu of a way of executing a scheduled task manually, I've added a button to a form that does the job (it's mostly for testing, but the client wants to be able to run it manually if needs be).

The code runs in a background worker, and is working well.

However, right now, there's no telling that it's busy, or when it's done. I don't want to make it a foreground process, because it can run for a while, and I don't want to block the UI.

Can I add a control to the status bar? I was thinking something like a 'marquee' style progress bar or hour-glass that the user can click on to cancel the process.

Re: Adding "background task running" to status bar

PostPosted: Tue Aug 13, 2019 3:01 pm
by Mike.Sheen
pricerc wrote:Can I add a control to the status bar?


Yes.

Re: Adding "background task running" to status bar

PostPosted: Tue Aug 13, 2019 3:22 pm
by pricerc
:P

Re: Adding "background task running" to status bar  Topic is solved

PostPosted: Thu Aug 15, 2019 11:27 am
by SBarnes
Take a look at the UltraStatusBar1 property on the main form the help on UltraStatusBar is here although it's not the correct version it should give you what you need https://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/html/Infragistics2.Win.UltraWinStatusBar.v12.1~Infragistics.Win.UltraWinStatusBar.UltraStatusBar_members.html