Skip to Content
author's profile photo Former Member
Former Member

Progress Bar problem


My Progress bar doesn't show up.

BUT if I minimize SAP and maximize it, then I see it

Is there any way to force a REPAINT of SAP or a Refresh or anything to tell SAP that it needs to show my Progress bar when I create it ?

Here's where I create my Progressbar at the very begining of the process

    private void PrintSticker()
        string Sticker = "";
        SAPbouiCOM.ProgressBar PrgBar = null;

            PrgBar = SBO_Application.StatusBar.CreateProgressBar("Printing Stickers...", 500, false);
            PrgBar.Value = 1;

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Jun 08, 2007 at 12:39 AM

    Hi Marc,

    There isn't a way to get the whole SBO interface to refresh. There is an Update method of the form object that causes the selected form to redraw itself but whether this would rectify your progress bar issue is something you'd have to test. You could also try writing to the status bar (SetStatusBarMessage of the application object) just before you create your progress bar to see if this corrects the problem.

    Have you tried setting the initial value of the progress bar to 0 rather than 1?

    Finally, check to see if any newer patches are available. Maybe this has been recognised as an issue with the UI and fixed in a later patch (though I haven't heard of it myself).

    Kind Regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 08, 2007 at 06:38 AM

    I think the Progress Bar is only showned after 2 or 3 seconds...

    So if the work is short enough, you don't see it (but the mouse pointer is set as an hourglass)

    Try to make the work longer.

    If your work is already longer than 3 seconds, could you show us the code of it ?

    Do you increment PrgBar.Value ?

    Is there any other UI call ?

    Did you freeze something and not unfreeze ?

    What's the version of Business One ? (PL... ?)

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Oliver.

      You were right. The progress bar starts to show up only when the incrementation starts after a few seconds.

      I did simulate the incrementation a bit just before the real process starts.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 05:28 PM

    Read the previous message

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.