Editable FlexGrid/Grid Control in VB4/5/6

Editable FlexGrid/Grid Control in VB4/5/6

Overview

This code shows how to use a TextBox control with a Grid.OCX (VB4) or a MSFlexGrid.OCX (VB5/6) control to make an editable grid control. It also demonstrates how to copy the selected Cells to the ClipBoard.

Screen Shot

The code works by having a hidden textbox (text1) on the same form as the Grid Control and positioning it over the relevant cell when editing is to occur. The code should work with the standard GRID.OCX control that came with VB4 as well as the MSFlexGrid control supplied with VB5/6. The code has comments to show where FlexGrid only code could be applied.


Download Zipped Project File (3k)

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read