Microsoft KB Archive/180759

{|
 * width="100%"|

INFO: DrawText Method Is Implemented But Not Documented

 * }

Q180759

-

The information in this article applies to:


 * Microsoft 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
 Create a new Windows CE Project in Visual Basic 5.0. Form1 is created by default. Select Components from the Project menu. Select the Microsoft CE PictureBox Control 1.0 from the Controls list, and then click OK. Add a PictureBox Control to Form1.  Add the following code to the Form_Load event:      Sub Form_Load PictureBox1.DrawText "Hello" PictureBox1.DrawText PictureBox1.DrawText "World" End Sub  If necessary, install the PictureBox Class to the desired target (emulator or remote device) by using the Control Manager from the Windows CE menu. Press the F5 key to run the project.</li></ol>

Additional query words: wince wce vbce vbce5

Keywords : kbToolkit kbVBp kbVBp500 kbOSWinCEsearch kbOSWinCE100 kbGrpDSVB

Issue type : kbinfo

Technology : kbVBSearch kbAudDeveloper kbWinCETKVBSearch kbWinCESearch kbWinCETK100VB500