Solved

Background Processing

Posted on 2000-05-17
2
147 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

930 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

11 Experts available now in Live!

Get 1:1 Help Now