Solved

Background Processing

Posted on 2000-05-17
2
150 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

730 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