Pause execution in Main: Activity_Create

ValDog

Active Member
Licensed User
Longtime User
When I execute my program I want it to first display an About dialog (which will time out in 5 sec), then load a Login dialog (for user to login), afterwhich it loads the main dialog.

How do I go about pausing execution in Main: Activity_Create() to sequentially perform the above actions?
 

mc73

Well-Known Member
Licensed User
Longtime User
In Activity_create drive your app to a sub creating the 'about dialog'. Initialize a timer, and after 5 secs, disable it (the timer) and continue loading your activity's layouts and so on. If however you need user to see a loaded layout underneath the dialog box, you can firstly load your layouts, then load and set your 'about dialog' panel to transparent. Of course you should cover the whole view's area with this panel, in order to avoid clicks on the main form.
 
Upvote 0

ValDog

Active Member
Licensed User
Longtime User
I did as you suggested. Within the Main Activity_Create I have the following:

StartActivity(About)
AboutTimer.Initialize("AboutTimer", 5000)
AboutTimer.Enabled = True

Then, in Sub AboutTimer_Tick, I have:

AboutTimer.Enabled = False

When I execute the program it just blows right past the timer code in Activity_Create and loads everything else in that Sub. How do I get it to stop executing until the timer times out?
 
Upvote 0
Top