Skip to content

Redraw a StatusItem in the StatusBar #2329

Answered by tznind
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think you can refresh an individual item but you can use StatusBar.SetNeedsDisplay() to redraw the whole bar (but not rest of the UI).

If you are doing this from a Thread though I would make sure to call wrapped with Application.MainLoop.Invoke(()=>myStatusBar.SetNeedsDisplay());.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant