none
Trying to add a marquee progress bar splash screen, while there is a delay in the main form loading RRS feed

  • Question

  • Hi there,

    This is my scenario :

     Inputform > has 3 input boxes, user can only use one.
    OK button launches the SplashScreen

    SplashScreen is a basic form with a text box saying "please wait" and a marquee progressbar
    SplashScreen on load does this:
        $InputForm.Close()
        Find

    Find - does various searches (AD,DNS,DHCP,SCCM)
    Once it's done all of this, it launches - SearchOutputform

    SearchOutputform is the main form where all of the data collected by Find is diplayed, and has a number of buttons to do various things.

    What i'm trying to achieve is this, when the OK button is pressed on the Input form, there can be a long delay before the Find function does it's work, and then fires up the SearchOutputform form.
    I want to have the SplashScreen showing WHILE the Find function is doing it's thing, then when the Find function has completed, it closes the SplashScreen and opens the SearchOutputform.

    What i'm getting with the above logical order is that the splash screen only shows AFTER the SearchOutputform is closed, even though it's called before.

    How can i get this to work ? What would the technique be ?
    Please help !!

    Many thanks

    Damian

    PS using WinForms
    • Edited by DamianBz Sunday, August 19, 2018 4:31 PM
    • Moved by Bill_Stewart Wednesday, December 12, 2018 6:16 PM This is not "debug/fix/rewrite my script for me" forum
    Sunday, August 19, 2018 4:29 PM

All replies