INFO: DrawText Method Is Implemented But Not Documented
ID: 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.
Additional query words:
wince wce vbce vbce5
Keywords : kbToolkit kbVBp kbVBp500 kbWinCE kbWinCE100 kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbinfo