Use a Picture Box as a Graphics Text Box

Category:
Screen/Graphics
Type:
Modules
Difficulty:
Beginning
Author:
Ethan

Version Compatibility: Visual Basic 6

More information:
The attached code show how to start changing a picture box into a graphics Text Box. It shows how to display a blinking text insert point line and how to print the text at the line and move the line to the next character. Pressing the enter key will move the cursor to the beginning of the next line. If you wish to extend the example, you will have to add code for the other special keys (BackSpace,Delete etc).

Clicking on different points on the picture box will change the currentx and currenty and reposition the insert line. You can also change the font and all it's properties from the file menu. Changing font size will resize the line.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download txtpicbx.zip