home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / ARQS_ZIP / BV0702.ZIP / BV0702.TXT
Encoding:
Text File  |  1992-11-12  |  6.2 KB  |  118 lines

  1. ======================================================================
  2.   Microsoft(R) Product Support Services Application Note (Text File)
  3.                 BV0702: PROCEDURES QUESTIONS & ANSWERS
  4. ======================================================================
  5.                                                   Revision Date: 11/92
  6.                                                       No Disk Included
  7.  
  8. The following information applies to Microsoft Visual Basic(TM) for
  9. Windows(TM) versions 1.0 and 2.0.
  10.  
  11.  --------------------------------------------------------------------
  12. | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY    |
  13. | ACCOMPANY THIS DOCUMENT (collectively referred to as an            |
  14. | Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY      |
  15. | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO    |
  16. | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A     |
  17. | PARTICULAR PURPOSE. The user assumes the entire risk as to the     |
  18. | accuracy and the use of this Application Note. This Application    |
  19. | Note may be copied and distributed subject to the following        |
  20. | conditions: 1) All text must be copied without modification and    |
  21. | all pages must be included; 2) If software is included, all files  |
  22. | on the disk(s) must be copied without modification [the MS-DOS(R)  |
  23. | utility DISKCOPY is appropriate for this purpose]; 3) All          |
  24. | components of this Application Note must be distributed together;  |
  25. | and 4) This Application Note may not be distributed for profit.    |
  26. |                                                                    |
  27. | Copyright 1992 Microsoft Corporation. All Rights Reserved.         |
  28. | Microsoft and MS-DOS are registered trademarks and Visual Basic    |
  29. | and Windows are trademarks of Microsoft Corporation.               |
  30.  --------------------------------------------------------------------
  31.  
  32. 1. Q. How do I remove a picture from the Picture property at
  33.       design time?
  34.  
  35.    A. To remove a picture from the Picture property, select the word
  36.       displayed in the Settings box for the Picture property and press
  37.       the DEL key. For more information, please refer to Chapter 15 of
  38.       the Visual Basic version 2.0 "Programmer's Guide" or to page 162
  39.       of the Visual Basic version 1.0 "Programmer's Guide."
  40.  
  41. 2. Q. I use the frame and picture controls to group other
  42.       controls; however, when I select the frame or picture control,
  43.       the other controls do not remain on top of the frame or picture
  44.       control. How can I correct this problem?
  45.     
  46.    A. This problem occurs if you draw the controls on top of the frame
  47.       or picture control instead of inside the frame or picture
  48.       control. The frame or picture control must be selected when you
  49.       draw or paste another control inside it. If the frame or picture
  50.       control is not selected, the control is drawn on top of the frame
  51.       or picture control, rather than inside it. For more information,
  52.       please refer to Chapter 3 of the Visual Basic version 2.0
  53.       "Programmer's Guide" or page 129 of the Visual Basic version 1.0
  54.       "Programmer's Guide."
  55.  
  56. 3. Q. How can I define my own mouse pointer or cursor for a
  57.       particular control? I can't find any information on how to do
  58.       this in the manuals.
  59.     
  60.    A. The standard Microsoft Visual Basic controls do not provide
  61.       support for custom mouse pointers. You must use the Visual Basic
  62.       Control Development Kit (CDK), which is provided in the
  63.       Professional Toolkit for Visual Basic version 1.0 and in the
  64.       Visual Basic Professional Edition version 2.0, to add this
  65.       functionality to your controls.
  66.  
  67. 4. Q. I have several forms in my application, all of which have
  68.       many controls and load rather slowly. How can I speed up the load
  69.       time of these forms?
  70.  
  71.    A. To speed up load time in version 2.0 of Microsoft Visual Basic
  72.       for Windows, limit the number of forms and controls that are
  73.       loaded at startup. Also, moving code from forms to other code
  74.       modules can help to speed up load time. For more information on
  75.       how to better optimize the load time and run time of your Visual
  76.       Basic applications, please refer to Chapter 11 of the Visual
  77.       Basic version 2.0 "Programmer's Guide."
  78.  
  79.       With Visual Basic version 1.0, labels are the easiest controls to
  80.       eliminate because they usually contain static text only, which
  81.       can be printed directly on the form instead of using an
  82.       additional label control.
  83.  
  84. 5. Q. When I attempt to call a Windows application programming
  85.       interface routine, I receive the error message "Bad DLL calling
  86.       convention." What is causing this error?
  87.  
  88.    A. The error message "Bad DLL calling convention" occurs when a
  89.       function is incorrectly declared. For example, this error occurs
  90.       if the function has the Integer data type, but you declare it as
  91.       the Double data type. This error also occurs if you declare one
  92.       or more of the DLL function parameters as a data type other than
  93.       the data type Visual Basic expects.
  94.  
  95. 6. Q. Can I switch to other applications from the Microsoft Visual
  96.       Basic tutorial?
  97.  
  98.    A. When you are running the Visual Basic tutorial, you cannot switch
  99.       to Task Manager or any other application. You must quit the
  100.       tutorial before you can move between applications.
  101.  
  102. 7. Q. How can I place a bitmap on a command button so that the
  103.       command button looks similar to the buttons in the Microsoft
  104.       Visual Basic Toolbox?
  105.  
  106.    A. Command buttons with bitmaps are custom controls. Windows
  107.       standard command buttons do not support bitmaps in place of
  108.       captions; however, this functionality can be achieved by creating
  109.       your own custom control with the Microsoft Visual Basic Control
  110.       Development Kit (CDK). The PUSH sample control provided with the
  111.       CDK provides this functionality. This functionality can also be
  112.       achieved by using a picture control as described in the Microsoft
  113.       Knowledge Base article "How to Make a Push Button with a Bitmap
  114.       in Visual Basic." To locate this article on CompuServe, query on
  115.       the words drawmode and mouseup.
  116.  
  117.  
  118.