home *** CD-ROM | disk | FTP | other *** search
- ======================================================================
- Microsoft(R) Product Support Services Application Note (Text File)
- BV0702: PROCEDURES QUESTIONS & ANSWERS
- ======================================================================
- Revision Date: 11/92
- No Disk Included
-
- The following information applies to Microsoft Visual Basic(TM) for
- Windows(TM) versions 1.0 and 2.0.
-
- --------------------------------------------------------------------
- | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY |
- | ACCOMPANY THIS DOCUMENT (collectively referred to as an |
- | Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY |
- | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO |
- | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A |
- | PARTICULAR PURPOSE. The user assumes the entire risk as to the |
- | accuracy and the use of this Application Note. This Application |
- | Note may be copied and distributed subject to the following |
- | conditions: 1) All text must be copied without modification and |
- | all pages must be included; 2) If software is included, all files |
- | on the disk(s) must be copied without modification [the MS-DOS(R) |
- | utility DISKCOPY is appropriate for this purpose]; 3) All |
- | components of this Application Note must be distributed together; |
- | and 4) This Application Note may not be distributed for profit. |
- | |
- | Copyright 1992 Microsoft Corporation. All Rights Reserved. |
- | Microsoft and MS-DOS are registered trademarks and Visual Basic |
- | and Windows are trademarks of Microsoft Corporation. |
- --------------------------------------------------------------------
-
- 1. Q. How do I remove a picture from the Picture property at
- design time?
-
- A. To remove a picture from the Picture property, select the word
- displayed in the Settings box for the Picture property and press
- the DEL key. For more information, please refer to Chapter 15 of
- the Visual Basic version 2.0 "Programmer's Guide" or to page 162
- of the Visual Basic version 1.0 "Programmer's Guide."
-
- 2. Q. I use the frame and picture controls to group other
- controls; however, when I select the frame or picture control,
- the other controls do not remain on top of the frame or picture
- control. How can I correct this problem?
-
- A. This problem occurs if you draw the controls on top of the frame
- or picture control instead of inside the frame or picture
- control. The frame or picture control must be selected when you
- draw or paste another control inside it. If the frame or picture
- control is not selected, the control is drawn on top of the frame
- or picture control, rather than inside it. For more information,
- please refer to Chapter 3 of the Visual Basic version 2.0
- "Programmer's Guide" or page 129 of the Visual Basic version 1.0
- "Programmer's Guide."
-
- 3. Q. How can I define my own mouse pointer or cursor for a
- particular control? I can't find any information on how to do
- this in the manuals.
-
- A. The standard Microsoft Visual Basic controls do not provide
- support for custom mouse pointers. You must use the Visual Basic
- Control Development Kit (CDK), which is provided in the
- Professional Toolkit for Visual Basic version 1.0 and in the
- Visual Basic Professional Edition version 2.0, to add this
- functionality to your controls.
-
- 4. Q. I have several forms in my application, all of which have
- many controls and load rather slowly. How can I speed up the load
- time of these forms?
-
- A. To speed up load time in version 2.0 of Microsoft Visual Basic
- for Windows, limit the number of forms and controls that are
- loaded at startup. Also, moving code from forms to other code
- modules can help to speed up load time. For more information on
- how to better optimize the load time and run time of your Visual
- Basic applications, please refer to Chapter 11 of the Visual
- Basic version 2.0 "Programmer's Guide."
-
- With Visual Basic version 1.0, labels are the easiest controls to
- eliminate because they usually contain static text only, which
- can be printed directly on the form instead of using an
- additional label control.
-
- 5. Q. When I attempt to call a Windows application programming
- interface routine, I receive the error message "Bad DLL calling
- convention." What is causing this error?
-
- A. The error message "Bad DLL calling convention" occurs when a
- function is incorrectly declared. For example, this error occurs
- if the function has the Integer data type, but you declare it as
- the Double data type. This error also occurs if you declare one
- or more of the DLL function parameters as a data type other than
- the data type Visual Basic expects.
-
- 6. Q. Can I switch to other applications from the Microsoft Visual
- Basic tutorial?
-
- A. When you are running the Visual Basic tutorial, you cannot switch
- to Task Manager or any other application. You must quit the
- tutorial before you can move between applications.
-
- 7. Q. How can I place a bitmap on a command button so that the
- command button looks similar to the buttons in the Microsoft
- Visual Basic Toolbox?
-
- A. Command buttons with bitmaps are custom controls. Windows
- standard command buttons do not support bitmaps in place of
- captions; however, this functionality can be achieved by creating
- your own custom control with the Microsoft Visual Basic Control
- Development Kit (CDK). The PUSH sample control provided with the
- CDK provides this functionality. This functionality can also be
- achieved by using a picture control as described in the Microsoft
- Knowledge Base article "How to Make a Push Button with a Bitmap
- in Visual Basic." To locate this article on CompuServe, query on
- the words drawmode and mouseup.
-
-
-