Microsoft KB Archive/188586

= How To Expedite the Visual Basic Support Process =

Article ID: 188586

Article Last Modified on 3/3/2005

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition
 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



This article was previously published under Q188586



SUMMARY
This article provides tips on how to reduce your Visual Basic program to a minimum so you can accurately describe the problem to a support professional, who will look for a way to duplicate the problem using the least objects and code.

When you encounter a problem with a Visual Basic program and have to call Microsoft Technical Support for assistance, you can reduce your call time prior to calling by creating a version of your program that contains only those pieces needed to reproduce the problem.



MORE INFORMATION
The following is the basic strategy of creating a minimal Visual Basic program to isolate the problem so a support professional can find a solution quickly.
 * 1) Make a back-up copy of your program.
 * 2) Follow the steps shown in the next section. After completing each step, check to see if the problem still exists.
 * 3) When you have finished, copy the minimal program to a new project and check to see if the problem still exists.

NOTE: You may not have to perform all the steps presented here to isolate your problem. However, you may need to modify your code to get the program to compile properly to reproduce the problem.

Steps to Reduce Your Program to a Minimum

 * 1) Identify and remove all forms, code modules, class modules, user controls, and property pages not needed to re-create the problem.
 * 2) From the remaining forms, remove all controls and referenced objects not needed to re-create the problem.
 * 3) From the Project menu, clear all References and Components not needed to re-create the problem.

NOTE: Visual Basic prevents any control or reference used by the program from being removed.
 * 1) Remove all unexecuted code from the remaining forms.
 * 2) At this point, you may be able to remove additional controls that are not used by the remaining forms.

NOTE: Try clearing additional References and Components, as described in step 3.
 * 1) Remove pieces of code from the remaining procedures that do not appear to be related to the problem.
 * 2) Try to remove pieces from the original project. For example, if the problem is related to database access, use another database to reproduce the problem, such as BIBLIO.MDB that ships with Visual Basic.
 * 3) Repeat this process until you have the smallest possible program, then copy this program to a new project.

Additional query words: kbDSupport kbdss kbVBp500 kbVBp400 kbVBp kbVBp600

Keywords: kbhowto KB188586

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.