HOWTO: Adding Copy and Paste Functionality to Grid ControlLast reviewed: May 21, 1997Article ID: Q168835 |
The information in this article applies to:
SUMMARYWhen a Grid control object based on the Grid32.OCX is placed on a form, the cut, copy, and paste menu items are not available. Additionally, the hot keys, such as CTRL+V, do not function. This article shows how to use properties of the Grid control to emulate these editing functions.
MORE INFORMATIONSince neither the system menu options nor the shortcut keys for cut, copy, and paste work within the Grid control, the Grid32.OCX object properties must be used to accomplish these functions. To emulate these editing functions, the Clip, Col, Row, and Text properties of the Grid control must be used. The example provided below uses a TextBox control and a Grid control to demonstrate how to copy, cut, and paste a text string between the two objects programmatically. The following steps create a form containing a Grid control that has copy, cut, and paste functionality:
REFERENCESFor additional information on the properties of the Grid control, invoke the Visual Basic Help file by clicking the Grid control and pressing the F1 key. |
Keywords : FxprgGeneral vfoxwin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |