This is a migrated thread and some comments may be shown as answers.

Help with updating STATUSSTRIP element from MOD procedure

2 Answers 87 Views
StatusStrip
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 Nov 2008, 10:42 AM
I have a STATUSSTRIP placed on a form called DESKTOP, which is always ON TOP and present.  This form calls and runs everything in my VB.NET application, and happens to be the STARTUP form.  I call an PROC which is one of my MODULES instead of CLASS.  This PROC happens to run for a long time.  I would like for the PROC to post an update to the STATUSSTRIP located on my DESKTOP form (calling form) using the STATUSSTRIPLABEL.VALUE1 and STATUSSTRIPLABEL.TEXT properties.  How would I accomplish this?

I tried using DESKTOP.STATUSSTRIP.TEXT = "Something..." and it would not work from my SUB.  Basically, my code would look like this on the FORM side.

PRIVATE SUB DESKTOP_ONLOAD() HANDLES FORM_LOAD

    ....
    Call gsDoSomething
    ...
    
    ME.STATUSSTRIPLABEL.TEXT = "Ready..."
    
END SUB

The PROC being called will live in a MODULESOMETHING.VB file in my project and its code will resemble...

PUBLIC SUB gsDoSomething()

    ....
    DESKTOP.STATUSSTRIPLABEL.TEXT = "Doing something..."
    ...

END SUB

Any help or suggestion would be greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 26 Nov 2008, 03:32 PM
Hi,

I am sending you a modified version of my previous sample. In this sample I pass as an argument the Desktop form instance to the PROC containing the long-running operation.

Hope this helps.

Sincerely yours,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
sayyed mahdi khadishi
Top achievements
Rank 2
answered on 04 Sep 2009, 12:53 PM
hi
it's very bad that i should run Application.DoEvents() for ever change Text
standard statusbar don't need it.
good luck
Tags
StatusStrip
Asked by
John
Top achievements
Rank 1
Answers by
Peter
Telerik team
sayyed mahdi khadishi
Top achievements
Rank 2
Share this question
or