Solved

Background Processing

Posted on 2000-05-17
2
146 Views
Last Modified: 2010-05-02
A VB newbie needs to know:

Another programmer I know wants to be able to load forms in the background and continue processing the main program.  Note: the forms have alot of controls and take some time to load.  

My question, is there a way to do this?

If not, I need to be able to tell him why.  

Thanks
0
Comment
Question by:VBStarter
2 Comments
 
LVL 5

Accepted Solution

by:
Voodooman earned 50 total points
ID: 2818541
Er No!

Windows doesnt really multitask it queues things up and pretty much does things in turn.

It is also event driven and you have to wait for the Events to be processed.

There are some exceptions to this because some events are proritised by Windows and processor time is shared between tasks which gives the impression of multitasking!

What you can do is load a splash screen and then load the forms hidden while the splash screen runs on a timer and then unload the splash and show the forms with the .show method

Good Luck

Voodooman!
0
 
LVL 1

Expert Comment

by:ofirg
ID: 2820890
Try doing what most windows app do...
show a splash window on the startup of your application.

1) add this sub to one of your modul

Public Sub Main()
  frmSplash.Show
  call InitProgram ' your program initialization
  Unload frmSplash
End Sub

2) In project->properties set Sub Main as your start object

Joy and Happiness

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now