cancel
Showing results for 
Search instead for 
Did you mean: 

Progress Bar problem

Former Member
0 Kudos

Hi,

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;

        try
        {
            PrgBar = SBO_Application.StatusBar.CreateProgressBar("Printing Stickers...", 500, false);
            PrgBar.Value = 1;
            NEED A REPAINT HERE, PLEASE SHOW ME MY PROGRESS BAR

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Read the previous message

olivier_huet3
Participant
0 Kudos

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... ?)

Former Member
0 Kudos

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.

former_member201110
Active Contributor
0 Kudos

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,

Owen

Former Member
0 Kudos

Hi,

All of these have been tried. I will see if any future patch will fix it and also try some trick that Oliver bellow gave me