------------------------------------------------------------------------
 Entering New Text Line By ENTER Sample for iGrid ActiveX
 
 Control Version: 3.0
 Environment: Visual Basic 6

 Copyright (c) 10Tec Company. All rights reserved.
------------------------------------------------------------------------

Description
===========
iGrid allows you to enter mutliline text into its cells, but to enter a new line of text you should press CTRL+ENTER instead of ENTER because the ENTER key is the standard iGrid key used to finish editing. This sample demonstrates how to redefine these standard commands so you can use ENTER to insert line breaks and CTRL+ENTER to finish editing.

Short Code Explanation
======================
All work in this sample is done in the TextEditKeyPress event handler. Its KeyAscii parameter passed by reference allows you to substitute keystrokes passed to iGrid from the system.

To insert the line break characters (the vbCrLf constant), we suppress the ENTER key at all by setting KeyAscii to 0 and replace the edited text (the TextEditText property) with the new value in which vbCrLf is inserted into the proper place.
