INFO: DrawText Method Is Implemented But Not Documented

Last reviewed: February 10, 1998
Article ID: Q180759
The information in this article applies to:
  • Windows CE Toolkit for Visual Basic 5.0, version 1.0

SUMMARY

The DrawText method of the PictureBox control is not documented. However, the method was implemented and does work. The DrawText method draws text in the PictureBox control one line at a time.

MORE INFORMATION

The syntax of the PictureBox control's DrawText method is:

   object.DrawText [string]

The parts of the DrawText method syntax are described in the following table:

Part              Description
----              -----------
object            A PictureBox object.
string            Optional. Any text string. If a string is not supplied
                  a blank line will be drawn.

Example of DrawText Method

  1. Create a new Windows CE Project in Visual Basic 5.0. Form1 is created by default.

  2. Select Components from the Project menu.

  3. Select the Microsoft CE PictureBox Control 1.0 from the Controls list, and then click OK.

  4. Add a PictureBox Control to Form1.

  5. Add the following code to the Form_Load event:

          Sub Form_Load()
             PictureBox1.DrawText "Hello"
             PictureBox1.DrawText
             PictureBox1.DrawText "World"
          End Sub
    
    

  6. If necessary, install the PictureBox Class to the desired target (emulator or remote device) by using the Control Manager from the Windows CE menu.

  7. Press the F5 key to run the project.
Keywords          : vb5all vbce
Version           : WINDOWS:1.0
Platform          : WINDOWS
Issue type        : kbinfo


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 10, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.